Skip to content

[ERA-9830] wiring up new back-end permissions for data export functionality #1141

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

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

JoshuaVulcan
Copy link
Collaborator

@JoshuaVulcan JoshuaVulcan commented Jul 22, 2024

What does this PR do?

  • This is the front-end portion of ERA-8866

How does it look

  • N/A

Relevant link(s)

Where / how to start reviewing (optional)

  • Create a couple of users, one with the permissions and one without, and ensure they work as expected.

Any background context you want to provide(if applicable)

  • N/A

// eslint-disable-next-line react-hooks/exhaustive-deps
], [dailyReportEnabled, eventFilter, eventTypes, kmlExportEnabled, t]);
const modals = useMemo(() => {
const modals = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Funky new line haha

}

return modals;
/* eslint-disable-next-line react-hooks/exhaustive-deps */
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason for this eslint-disable?

Copy link
Collaborator Author

@JoshuaVulcan JoshuaVulcan Jul 24, 2024

Choose a reason for hiding this comment

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

Yes -- I'm preserving this from the old code actually. There's a bit of a break in the paradigm of store-driven state changes here, so we pass eventFilter in the dependency array to ensure the value returned by calcEventFilterForRequest always matches the current state of the event filter.

@JoshuaVulcan JoshuaVulcan merged commit adf6902 into develop Jul 29, 2024
3 checks passed
@JoshuaVulcan JoshuaVulcan deleted the ERA-9830 branch July 29, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants