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

Implement separate thresholds route #58202

Merged
merged 6 commits into from
Oct 17, 2023

Conversation

nhsiehgit
Copy link
Contributor

@nhsiehgit nhsiehgit commented Oct 16, 2023

Implements a separate route for release thresholds and modifies the header for the release index page.

Oct-16-2023.16-23-28.mp4

All changes/routes are hidden behind an org feature flag.
if flag is not set, then release trheshold page will redirect to the release page.

Oct-16-2023.16-20-21.mp4

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 16, 2023
@nhsiehgit nhsiehgit force-pushed the implement_separate_thresholds_route branch from ccde633 to e84bae0 Compare October 16, 2023 23:14
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 16, 2023
@github-actions
Copy link
Contributor

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

@nhsiehgit nhsiehgit marked this pull request as ready for review October 16, 2023 23:23
@nhsiehgit nhsiehgit requested a review from a team as a code owner October 16, 2023 23:23
@nhsiehgit nhsiehgit requested review from scttcper, malwilley and a team October 16, 2023 23:26
@nhsiehgit nhsiehgit changed the title WIP: Implement separate thresholds route Implement separate thresholds route Oct 16, 2023
@nhsiehgit nhsiehgit force-pushed the implement_separate_thresholds_route branch from 3443faa to 539f25f Compare October 16, 2023 23:32
@@ -1470,6 +1470,30 @@ function buildRoutes() {
</Route>
</Fragment>
);
const releaseThresholdRoutes = (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤷
Maybe this doesn't need to be a separate const, but figured it'd help differentiate responsibility


function ReleaseThresholdList({router, organization}: Props) {
const hasV2ReleaseUIEnabled = organization.features.includes('release-ui-v2');
if (!hasV2ReleaseUIEnabled) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@scttcper

Let me know if there's a better way to redirect on component mount than this 🤷

Copy link
Member

Choose a reason for hiding this comment

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

probably in a useEffect with just the org as a dependnecy

);
}

export default withProjects(withOrganization(withPageFilters(ReleaseThresholdList)));
Copy link
Member

Choose a reason for hiding this comment

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

we're trying to use hooks on new components instead of HoC. i think these should all exist like usePageFilters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh awesome.
Love that direction.

will update

@nhsiehgit nhsiehgit enabled auto-merge (squash) October 16, 2023 23:51
@nhsiehgit nhsiehgit merged commit 45a152b into master Oct 17, 2023
@nhsiehgit nhsiehgit deleted the implement_separate_thresholds_route branch October 17, 2023 00:27
nhsiehgit added a commit that referenced this pull request Oct 18, 2023
Separate flagged threshold routing has now been completed in [this
PR](#58202)

Most recent updates resolve rebase discrepancies and re-implement the
thresholds list view with appropriate page filters and redirects



https://github.com/getsentry/sentry/assets/6186377/0cd52029-ed07-45a6-a9ce-cf6b5e6b0924
@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants