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

Upper slugs #443

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Upper slugs #443

wants to merge 4 commits into from

Conversation

sigvef
Copy link
Collaborator

@sigvef sigvef commented Mar 1, 2016

This change is Reviewable

@sigvef sigvef force-pushed the upper-slugs branch 2 times, most recently from 4a53027 to 5923478 Compare March 1, 2016 16:23
@sigvef
Copy link
Collaborator Author

sigvef commented Mar 1, 2016

ping

sigvef added 4 commits March 1, 2016 17:27
We seem to have relied on an implicit constraint that slugs should be
uppercase. This pull request makes this constraint more explicit by
carefully transforming slugs to uppercase everywhere.
This is needed to be able to specify the wikipendium.wiki app by label
in places where names cannot be properly parsed to contain dots, such as
when doing makemigrations.
This should probably work fine.
We currently assume that all article slugs are uppercase. However, prior
to this commit, it was possible to create articles with lowercase slugs
using the UI, which means that databases could at the point of this data
contain invalid data, i.e. lowercased slugs. This commit introduces a
data migration that uppercases all slugs, ensuring that the database is
returned to a valid state.
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.

1 participant