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

No issue: Accept permissionGroupName as undefined #4390

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

biaoli0
Copy link
Contributor

@biaoli0 biaoli0 commented Mar 20, 2023

Issue #:

Issue: https://beyondessential.slack.com/archives/C04QFLD87E3/p1678940272063209

Legacy report doesn't have permission group, it throws error in this permission check. It is only used in EditDashboardVisualisation handler, so I think it is safe not to test.

@IgorNadj
Copy link
Contributor

This behaviour seems very specific to legacy reports, can we move the check to there?

Also, if a utility function is only used in one place I'd say it probably doesn't need to exist. Let's move the internals to EditDashboardVisualisation handler?

@biaoli0 biaoli0 enabled auto-merge (squash) March 20, 2023 02:14
@biaoli0 biaoli0 merged commit 31b4b1b into dev Mar 20, 2023
@biaoli0 biaoli0 deleted the accept-permission-group-name-as-undefined branch March 20, 2023 02:25
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.

2 participants