Skip to content

Fix shared link with bad auth - #2225

Merged
ukutaht merged 10 commits into
masterfrom
fix-shared-link-with-bad-auth
Sep 20, 2022
Merged

Fix shared link with bad auth#2225
ukutaht merged 10 commits into
masterfrom
fix-shared-link-with-bad-auth

Conversation

@ukutaht

@ukutaht ukutaht commented Sep 14, 2022

Copy link
Copy Markdown
Contributor

Changes

This work started as a bug fix for a Sentry error. I used the opportunity for some refactoring & docs as well.

During development I found that backwards compatibility for the older format of shared links was broken in this commit.

  • Restore backwards compatibility for old format of shared links

Tests

  • Automated tests have been added

Changelog

  • Entry has been added to changelog

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

@ukutaht ukutaht added bug Something isn't working sentry References an issue in Sentry labels Sep 14, 2022
@bundlemon

bundlemon Bot commented Sep 14, 2022

Copy link
Copy Markdown

BundleMon

Unchanged files (7)
Status Path Size Limits
static/css/app.css
515.19KB -
static/js/dashboard.js
295.63KB -
static/js/app.js
12.13KB -
static/js/embed.host.js
5.58KB -
static/js/embed.content.js
5.06KB -
tracker/js/plausible.js
748B -
static/js/applyTheme.js
314B -

No change in files bundle size

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@ukutaht
ukutaht marked this pull request as ready for review September 14, 2022 11:29
@ukutaht
ukutaht requested review from a team, aerosol and vinibrsl September 14, 2022 11:30

@vinibrsl vinibrsl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Especially the refactoring :)

Comment thread lib/plausible_web/controllers/stats_controller.ex
Comment thread lib/plausible_web/controllers/stats_controller.ex
Comment thread lib/plausible_web/controllers/stats_controller.ex
Comment thread lib/plausible_web/controllers/stats_controller.ex
Comment thread lib/plausible_web/controllers/stats_controller.ex
@ukutaht
ukutaht force-pushed the fix-shared-link-with-bad-auth branch from 9210788 to 292bfeb Compare September 20, 2022 08:17
@ukutaht

ukutaht commented Sep 20, 2022

Copy link
Copy Markdown
Contributor Author

Screenshot 2022-09-20 at 11 17 24

Updated, now using mermaid to render the sequence diagram.

@ukutaht
ukutaht requested a review from aerosol September 20, 2022 08:36
@aerosol

aerosol commented Sep 20, 2022

Copy link
Copy Markdown
Member

Updated, now using mermaid to render the sequence diagram.

@aerosol aerosol left a comment

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.

🙌

Comment thread mix.exs
{:timex, "~> 3.7"},
{:ua_inspector, "~> 3.0"},
{:ex_doc, "~> 0.28"}
{:ex_doc, "~> 0.28", only: :dev, runtime: false}

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.

@ukutaht
ukutaht force-pushed the fix-shared-link-with-bad-auth branch from e9ee194 to fa7799d Compare September 20, 2022 12:33
@ukutaht
ukutaht merged commit e16e357 into master Sep 20, 2022
@ukutaht
ukutaht deleted the fix-shared-link-with-bad-auth branch September 20, 2022 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working sentry References an issue in Sentry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants