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 slugs not propagating correctly in HTML pubs #404

Merged
merged 3 commits into from
Mar 28, 2013

Conversation

chrismdp
Copy link
Contributor

We discovered that HTML pub slugs were lagging one behind the edition,
and additionally that we want slugs to change in draft mode but not once
the HTML version is published. This PR fixes that by changing the logic
in HtmlVersion to regenerate slugs only if the edition hasn't yet been
published.

Also includes a data migration to fix the titles and slugs for old HTML
pubs that were allowed to have blank titles.

More information on the ticket:
https://www.pivotaltracker.com/story/show/46557791

Chris Parsons added 3 commits March 28, 2013 13:11
Reworked the testing to include the changing of slugs whilst the
publication is in draft, and then to fix the slug after that with
successive publications.
@h-lame
Copy link
Contributor

h-lame commented Mar 28, 2013

This seems good, does it supercede #389 or od we just need to take care when merging that they don't clobber each other?

@chrismdp
Copy link
Contributor Author

#389 has already been merged, so we're good. The tests failed, but (again) was due to test server startup timeouts.

h-lame added a commit that referenced this pull request Mar 28, 2013
@h-lame h-lame merged commit 8169931 into master Mar 28, 2013
@h-lame
Copy link
Contributor

h-lame commented Mar 28, 2013

Fail is JS test timeout (again). Code looks good though, so merging.

@h-lame h-lame deleted the fix-blank-slugs-in-html-versions branch March 28, 2013 15:45
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