Skip to content

ref(ui) Fix more URLs for customer domains#41715

Merged
markstory merged 3 commits into
masterfrom
fix-domain-links
Nov 24, 2022
Merged

ref(ui) Fix more URLs for customer domains#41715
markstory merged 3 commits into
masterfrom
fix-domain-links

Conversation

@markstory

Copy link
Copy Markdown
Member
  • Fix URL generation in monitors. This was a more invasive change as the routes won't receive orgId in the future due to how organization slugs are propagated to class components.
  • Updated URL normalization for Organization general settings.

* Use new normalizeUrl() method for redirects.
* Get organization from context as we won't always have orgId in the
  params anymore.
@markstory markstory requested review from a team, dashed and davidenwang and removed request for dashed November 23, 2022 20:30
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 23, 2022
@github-actions

github-actions Bot commented Nov 23, 2022

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
src/sentry/static/sentry/dist/entrypoints/app.js 19.85 KB (-0.02% 🔽)
src/sentry/static/sentry/dist/entrypoints/sentry.css 33.06 KB (0%)


export default class CreateMonitor extends AsyncView<Props, AsyncView['state']> {
static contextTypes = {
router: PropTypes.object,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This router context doesn't seem to be used anywhere.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It isn't used here, but parts of AsyncComponent use router so it needs to be here too.


class MonitorDetails extends AsyncView<Props, State> {
static contextTypes = {
router: PropTypes.object,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This router context doesn't seem to be used anywhere.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, it is used by AsyncView/AsyncComponent though.

@markstory markstory merged commit 415bfeb into master Nov 24, 2022
@markstory markstory deleted the fix-domain-links branch November 24, 2022 18:43
priscilawebdev pushed a commit that referenced this pull request Nov 25, 2022
* Fix URL generation in monitors. This was a more invasive change as the
routes won't receive `orgId` in the future due to how organization slugs
are propagated to class components.
* Updated URL normalization for Organization general settings.
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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