Skip to content
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

ACMS-1984: Moderation dashboard fix for users. #1655

Merged
merged 2 commits into from
Nov 1, 2023
Merged

Conversation

deepakmishra2
Copy link
Contributor

Motivation

Fixes #ACMS-1984

Proposed changes
Excluding view json task for users, as we dont see json data for users since 9.3

Alternatives considered

Testing steps
Follow steps from ticket

Merge requirements

  • Major change, Minor change, Bug, Enhancement, and/or Chore label applied
  • Manual testing by a reviewer

Comment on lines 218 to 220
// Pattern includes all routes with entity and ends with canonical, the API
// menu will be visible only on node entities to render the jsonapi data.
elseif (preg_match('/^(media\.tasks:)?entity\.(\S*(?<!user))\.canonical$/', $id, $matches)) {
Copy link
Collaborator

@chandan-singh7929 chandan-singh7929 Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this statement is correct.
the API menu will be visible only on node entities to render the jsonapi data.

I can see it for taxonomy term, I think we should find root cause why its causing issue with user, rather than bypassing it.
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even i'm not 100% sure on this solution as this looks similar to what we did to exclude users route.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@apathak18 - As per discussion, please try pattern to bypass if its views_view:view.

@apathak18 apathak18 force-pushed the ACMS-1984 branch 4 times, most recently from 15eb106 to 754bc18 Compare November 1, 2023 04:25
@apathak18 apathak18 force-pushed the ACMS-1984 branch 2 times, most recently from dea9505 to 68e9016 Compare November 1, 2023 12:07
@vishalkhode1 vishalkhode1 merged commit 5c78fc7 into develop Nov 1, 2023
17 checks passed
@vishalkhode1 vishalkhode1 deleted the ACMS-1984 branch November 1, 2023 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants