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

feat(nav): duplicate profiling/traces/replays/discover/releases routes under /explore #84262

Merged
merged 4 commits into from
Jan 30, 2025

Conversation

malwilley
Copy link
Member

Ref #84018

The following products will live under the /explore/ URL structure (once the new nav is complete):

  • Profiling
  • Traces
  • Replays
  • Discover
  • Releases

In this PR I am simply duplicating the existing routes under /explore/ so that going to /explore/replays will render the same thing that /replays/ does. In the future we will also need to add redirects and change the existing links to the new structure.

@malwilley malwilley requested a review from a team January 29, 2025 20:53
@malwilley malwilley requested a review from a team as a code owner January 29, 2025 20:53
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 29, 2025
Copy link

codecov bot commented Jan 29, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
8606 1 8605 0
View the top 1 failed tests by shortest run time
buildRoutes() orgId routes also have domain routes
Stack Traces | 0.073s run time
Error: Unable to find matching URLs for the following 1 routes:

- slug: /organizations/:orgIdtracestrace/:traceSlug/
  domain: /:traceSlug/

Each route with the :orgId parameter is expected to have corresponding domain based route as well. If you need help with this drop by #proj-hybrid-cloud.
    at Object.<anonymous> (.../static/app/routes.spec.tsx:102:13)
    at Promise.then.completed (.../jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (.../jest-circus/build/utils.js:231:10)
    at _callCircusTest (.../jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at _runTest (.../jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (.../jest-circus/build/run.js:126:9)
    at _runTestsForDescribeBlock (.../jest-circus/build/run.js:121:9)
    at run (.../jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (.../build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (.../build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (.../jest-runner/build/runTest.js:367:16)
    at runTest (.../jest-runner/build/runTest.js:444:34)
    at Object.worker (.../jest-runner/build/testWorker.js:106:12)

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

</Route>
);

const exploreRoutes = (
<Route
path="/explore/"
path="/explore"
Copy link
Member

Choose a reason for hiding this comment

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

this looks wrong. but maybe because there's no index route?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yeah you're right should have a / at the end

@malwilley malwilley merged commit 69fea07 into master Jan 30, 2025
42 checks passed
@malwilley malwilley deleted the malwilley/feat/explore-routes branch January 30, 2025 20:40
andrewshie-sentry pushed a commit that referenced this pull request Feb 5, 2025
…s under /explore (#84262)

The following products will live under the `/explore/` URL structure
(once the new nav is complete):

- Profiling
- Traces
- Replays
- Discover
- Releases

In this PR I am simply duplicating the existing routes under `/explore/`
so that going to `/explore/replays` will render the same thing that
`/replays/` does. In the future we will also need to add redirects and
change the existing links to the new structure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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