WIP: Test with upstream simpleeval PR for checking disallowed items at name-resolution boundary#3596
Closed
edgarrmondragon wants to merge 1 commit into
Closed
WIP: Test with upstream simpleeval PR for checking disallowed items at name-resolution boundary#3596edgarrmondragon wants to merge 1 commit into
edgarrmondragon wants to merge 1 commit into
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideWraps datetime and json modules with simpleeval.ModuleWrapper when exposing them as simpleeval functions, and pins the simpleeval dependency to a specific upstream Git revision that implements name-boundary checks for disallowed items. Class diagram for mapper functions using simpleeval ModuleWrapperclassDiagram
class Mapper {
+functions() dict
+_eval()
}
class SimpleEval {
+DEFAULT_FUNCTIONS dict
+ModuleWrapper(module)
}
class DatetimeModule
class JsonModule
Mapper ..> SimpleEval : uses
Mapper ..> DatetimeModule : wraps
Mapper ..> JsonModule : wraps
Mapper : functions() clones SimpleEval.DEFAULT_FUNCTIONS
Mapper : functions()["datetime"] = SimpleEval.ModuleWrapper(DatetimeModule)
Mapper : functions()["json"] = SimpleEval.ModuleWrapper(JsonModule)
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3596 +/- ##
=======================================
Coverage 93.73% 93.73%
=======================================
Files 73 73
Lines 5890 5890
Branches 723 723
=======================================
Hits 5521 5521
Misses 274 274
Partials 95 95
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e395053 to
9280e7d
Compare
…t name-resolution boundary Signed-off-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
9280e7d to
deb6326
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related
simpleeval1.0.5+ by implementingModuleWrapperfor modules exposed to stream maps expressions #3561Summary by Sourcery
Wrap simpleeval datetime and json functions with module wrappers and pin simpleeval to a specific upstream Git revision for boundary checking behavior.
Enhancements:
Build: