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

refactor: remove BuildConfig from preference keys #3023

Merged
merged 3 commits into from
Mar 7, 2024
Merged

Conversation

Secozzi
Copy link
Contributor

@Secozzi Secozzi commented Mar 6, 2024

Using the version number as the key will leave a trail of obsolete preferences, which should be avoided. I don't mean to prevent overridable baseurls with this pr, it's just that they should be implemented in such a way that doesn't create unnecessary preference items. I also don't want to convert all to a new system, since a lot of extension appears to not have changed urls in a long time.

@Claudemirovsky Claudemirovsky changed the title chore: remove BuildConfig from preference keys refactor: remove BuildConfig from preference keys Mar 6, 2024
jmir1
jmir1 previously approved these changes Mar 6, 2024
Copy link
Member

@jmir1 jmir1 left a comment

Choose a reason for hiding this comment

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

Lint be like

@Secozzi
Copy link
Contributor Author

Secozzi commented Mar 6, 2024

Nice timing

@jmir1
Copy link
Member

jmir1 commented Mar 6, 2024

What timing

Wtf are you in my walls?

@Claudemirovsky
Copy link
Contributor

Btw, could you mark affected extensions with a // TODO: Check frequency of url changes comment or something, to help us if they go berserk again?
Just creating a list with the names of affected extensions is pretty useful too.

@Secozzi
Copy link
Contributor Author

Secozzi commented Mar 6, 2024

For the full list you can just look at this pr or search for the comment in the whole project

@dannycreations
Copy link
Contributor

so how do you solve the "baseurl constantly changing" problem then? waiting for pull get merge again?

@Secozzi
Copy link
Contributor Author

Secozzi commented Mar 7, 2024

so how do you solve the "baseurl constantly changing" problem then? waiting for pull get merge again?

I already explained that in my pull request comment, you shouldn't rely on BuildConfig in the preference keys

@jmir1 jmir1 merged commit f2fecd6 into master Mar 7, 2024
5 checks passed
@jmir1 jmir1 deleted the buildconfig branch March 7, 2024 12:50
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