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

Fix shared link with bad auth #2225

Merged
merged 10 commits into from
Sep 20, 2022
Merged

Fix shared link with bad auth #2225

merged 10 commits into from
Sep 20, 2022

Conversation

ukutaht
Copy link
Contributor

@ukutaht ukutaht commented Sep 14, 2022

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
Copy link

bundlemon bot commented Sep 14, 2022

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 aerosol, vinibrsl and a team September 14, 2022 11:30
Copy link
Contributor

@vinibrsl vinibrsl left a comment

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 :)

@ukutaht ukutaht force-pushed the fix-shared-link-with-bad-auth branch from 9210788 to 292bfeb Compare September 20, 2022 08:17
@ukutaht
Copy link
Contributor Author

ukutaht commented Sep 20, 2022

Screenshot 2022-09-20 at 11 17 24

Updated, now using mermaid to render the sequence diagram.

@aerosol
Copy link
Member

aerosol commented Sep 20, 2022

Updated, now using mermaid to render the sequence diagram.

Copy link
Member

@aerosol aerosol left a comment

Choose a reason for hiding this comment

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

🙌

@@ -115,7 +115,7 @@ defmodule Plausible.MixProject do
{:telemetry, "~> 1.0", override: true},
{:timex, "~> 3.7"},
{:ua_inspector, "~> 3.0"},
{:ex_doc, "~> 0.28"}
{:ex_doc, "~> 0.28", only: :dev, runtime: false}
Copy link
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.

None yet

3 participants