Skip to content

Upper slugs#443

Open
sigvef wants to merge 4 commits intomainfrom
upper-slugs
Open

Upper slugs#443
sigvef wants to merge 4 commits intomainfrom
upper-slugs

Conversation

@sigvef
Copy link
Copy Markdown
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
Copy Markdown
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