Skip to content

feat: Introduction of deprecated url dialog - #389

Merged
koebi merged 9 commits into
mainfrom
dialog_deprecated_url
Nov 12, 2026
Merged

koebi merged 9 commits into
mainfrom
dialog_deprecated_url

Conversation

@TKleinwort

Copy link
Copy Markdown
Collaborator

Modifications adds a new GUI class (DeprecatedUrlDialog), which opens a warning window after the start of qgis in the 4.x version if the old api is still in use. User can decide if the url is automaticly updated or not.

@koebi koebi left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hey,

currently, we are checking and resetting all URLs.
We only want to do that for api.openrouteservice.org, so we should only check for that.

Also, the first three commits can be dropped, as per #388
However, this code requires a feature from #388, so rather than git rebase -i main, git rebase -i update_default_url can be used :)

Comment thread ORStools/ORStoolsPlugin.py Outdated
Comment on lines +138 to +139
if provider_config.get("base_url") != default_url:
provider_config["base_url"] = default_url

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Issue: This resets all base URLs to the new default.
In fact, we only want to reset api.openrouteservice.org.

Comment thread ORStools/ORStoolsPlugin.py Outdated
Comment on lines +122 to +125
return any(
provider["base_url"] != DEFAULT_SETTINGS["providers"][0]["base_url"]
for provider in settings["providers"]
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great use of any()!
Issue: We only want to check whether the user is still using api.openrouteservice.org.

@TKleinwort
TKleinwort force-pushed the dialog_deprecated_url branch from 58b9d51 to 0a8db1b Compare September 25, 2026 09:36
@TKleinwort
TKleinwort force-pushed the dialog_deprecated_url branch 2 times, most recently from c7024ed to 879c205 Compare October 8, 2026 13:34
@koebi
koebi force-pushed the dialog_deprecated_url branch from 879c205 to c0ed4f3 Compare October 23, 2026 10:05
@koebi
koebi merged commit 2416a3a into main Nov 12, 2026
10 of 12 checks passed
@koebi
koebi deleted the dialog_deprecated_url branch November 12, 2026 18:39
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.

2 participants