-
-
Notifications
You must be signed in to change notification settings - Fork 4k
feat(medusa): filter query fields #14588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
carlos-r-l-rodrigues
wants to merge
43
commits into
develop
Choose a base branch
from
feat/filter-query-fields
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,458
−569
Open
Changes from 39 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
3626eaa
default medusa policies
carlos-r-l-rodrigues 3f1bb59
rm non used import
carlos-r-l-rodrigues 87ab7ec
check ff to wrap
carlos-r-l-rodrigues f206dce
types
carlos-r-l-rodrigues 3d825b5
Merge branch 'develop' into chore/apply-middleware-policies
carlos-r-l-rodrigues 73e06a0
wip
carlos-r-l-rodrigues 806c7ea
post endpoints
carlos-r-l-rodrigues 8112f8c
Merge branch 'develop' into chore/apply-middleware-policies
carlos-r-l-rodrigues 658fd93
Merge branch 'chore/apply-middleware-policies' of https://github.com/…
carlos-r-l-rodrigues df414a7
Merge branch 'chore/apply-middleware-policies' of https://github.com/…
carlos-r-l-rodrigues c45d80d
POST policies
carlos-r-l-rodrigues 1c60ebb
Merge branch 'chore/apply-middleware-policies' of https://github.com/…
carlos-r-l-rodrigues f7c1368
remove method all
carlos-r-l-rodrigues 1521c6f
Merge branch 'chore/apply-middleware-policies' of https://github.com/…
carlos-r-l-rodrigues 9fe4b98
create policy
carlos-r-l-rodrigues 54afd6f
Merge branch 'chore/apply-middleware-policies' of https://github.com/…
carlos-r-l-rodrigues 887bb46
missing entity
carlos-r-l-rodrigues 89cc7f0
Merge branch 'chore/apply-middleware-policies' of https://github.com/…
carlos-r-l-rodrigues 951c33d
field alias parse
carlos-r-l-rodrigues 7fb1a48
wrap middleware with policies only
carlos-r-l-rodrigues 62c0e7e
rm log
carlos-r-l-rodrigues 845f9f1
tests
carlos-r-l-rodrigues 48de7d3
rm from rbac
carlos-r-l-rodrigues 72890fe
Merge branch 'develop' into chore/apply-middleware-policies
carlos-r-l-rodrigues 497ff7c
Merge branch 'chore/apply-middleware-policies' into feat/filter-query…
carlos-r-l-rodrigues 6a128dc
update missing policies
carlos-r-l-rodrigues 13afa19
Merge branch 'chore/apply-middleware-policies' into feat/filter-query…
carlos-r-l-rodrigues eda0ee7
rm policy
carlos-r-l-rodrigues bc44469
rm duplicate
carlos-r-l-rodrigues 56e17db
Merge branch 'chore/apply-middleware-policies' into feat/filter-query…
carlos-r-l-rodrigues 94a2ae0
Merge branch 'develop' into chore/apply-middleware-policies
carlos-r-l-rodrigues a6fa291
Merge branch 'chore/apply-middleware-policies' into feat/filter-query…
carlos-r-l-rodrigues 4f44160
Merge branch 'develop' into chore/apply-middleware-policies
carlos-r-l-rodrigues 2cc50b6
Merge branch 'chore/apply-middleware-policies' into feat/filter-query…
carlos-r-l-rodrigues 3b31002
Merge branch 'develop' of https://github.com/medusajs/medusa into fea…
carlos-r-l-rodrigues 780bf31
* resources
carlos-r-l-rodrigues 186026e
rm policis from rbac
carlos-r-l-rodrigues f14fe3a
chore(): cleanup and improvements
adrien2p dc014ab
Merge branch 'develop' into feat/filter-query-fields
carlos-r-l-rodrigues 9e11451
new feature flag and better test expectations
carlos-r-l-rodrigues 6e8dd7c
cart route
carlos-r-l-rodrigues 4576745
Merge branch 'develop' into feat/filter-query-fields
carlos-r-l-rodrigues 51b295a
!entity
carlos-r-l-rodrigues File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
532 changes: 532 additions & 0 deletions
532
integration-tests/http/__tests__/rbac/admin/rbac-field-filtering.spec.ts
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
2 changes: 1 addition & 1 deletion
2
packages/core/framework/src/http/middlewares/check-permissions.ts
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: any reason for pushing a noop there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we wrap the policy checks and run the original middleware, in this case, there were none.
Potentially I can check on the wrapper if there is any original function to be executed, but I was affraid of breaking something unexpected.
Will run some real tests and if I can have this removed, I'll do it in a next PR.