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: implementation replacement on redirect #176

Merged
merged 5 commits into from
Nov 19, 2024

Conversation

gtempus
Copy link
Contributor

@gtempus gtempus commented Nov 15, 2024

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your master!
  • Make sure you are making a pull request against the develop branch (left side). Also you should start your branch off our develop.
  • Check the commit's or even all commits' message styles matches our requested structure.
  • Check your code additions will fail neither code linting checks nor unit test.

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

The string literal dynamic replaces any part of the URL path that matches the implementation part of the URL.
For example:
/sbtn_natural_forests_map/v202310/natural_forest/10/20/30.png
was resulting in the following incorrect redirect URL:
/sbtn_dynamics_map/v202310/dynamic/10/20/30.png?implementation=natural_forest

redirect_issue

What is the new behavior?

Now, the URL:
/sbtn_natural_forests_map/v202310/natural_forest/10/20/30.png
Is correctly transformed into:
/sbtn_natural_forests_map/v202310/dynamic/10/20/30.png?implementation=natural_forest

Does this introduce a breaking change?

  • Yes
  • No

@gtempus gtempus marked this pull request as draft November 15, 2024 20:19
@codecov-commenter
Copy link

codecov-commenter commented Nov 15, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.85%. Comparing base (ceb5926) to head (4f08c68).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #176   +/-   ##
=======================================
  Coverage   79.85%   79.85%           
=======================================
  Files          61       61           
  Lines        2050     2050           
=======================================
  Hits         1637     1637           
  Misses        413      413           
Flag Coverage Δ
unittests 79.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@gtempus gtempus force-pushed the bug-implementation-replacement-on-redirect branch from 82042cd to 27ef81a Compare November 18, 2024 14:53
Copy link
Contributor

@danscales danscales 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! Thanks for doing this.

@gtempus gtempus force-pushed the bug-implementation-replacement-on-redirect branch from 06b1922 to 590705e Compare November 19, 2024 19:03
@gtempus gtempus requested a review from danscales November 19, 2024 19:20
@gtempus gtempus marked this pull request as ready for review November 19, 2024 19:20
@gtempus gtempus merged commit 8d79ee7 into dev Nov 19, 2024
2 checks passed
@gtempus gtempus mentioned this pull request Nov 21, 2024
13 tasks
gtempus added a commit that referenced this pull request Nov 21, 2024
* 🐛 fix: Only replace implementation with `dynamic`

Supports FLAG-1126

* ✅ test: add initial pytest suite

* 🎨 refactor: create more declarative methods and tests

* 📝 docs: add docstring to handler

* 📝 docs: add implementation note regarding relative URLs

(cherry picked from commit 8d79ee7)
gtempus added a commit that referenced this pull request Nov 21, 2024
* 🐛 fix: Only replace implementation with `dynamic`

Supports FLAG-1126

* ✅ test: add initial pytest suite

* 🎨 refactor: create more declarative methods and tests

* 📝 docs: add docstring to handler

* 📝 docs: add implementation note regarding relative URLs

(cherry picked from commit 8d79ee7)
gtempus added a commit that referenced this pull request Nov 26, 2024
* 🐛 fix: Only replace implementation with `dynamic`

Supports FLAG-1126

* ✅ test: add initial pytest suite

* 🎨 refactor: create more declarative methods and tests

* 📝 docs: add docstring to handler

* 📝 docs: add implementation note regarding relative URLs

(cherry picked from commit 8d79ee7)
(cherry picked from commit bc6a6c7)
gtempus added a commit that referenced this pull request Nov 26, 2024
* 🐛 fix: Only replace implementation with `dynamic`

Supports FLAG-1126

* ✅ test: add initial pytest suite

* 🎨 refactor: create more declarative methods and tests

* 📝 docs: add docstring to handler

* 📝 docs: add implementation note regarding relative URLs

(cherry picked from commit 8d79ee7)
(cherry picked from commit bc6a6c7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants