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

Give article title a Unique sql constraint. #3

Open
1 of 3 tasks
hgzimmerman opened this issue Feb 11, 2018 · 2 comments
Open
1 of 3 tasks

Give article title a Unique sql constraint. #3

hgzimmerman opened this issue Feb 11, 2018 · 2 comments
Projects

Comments

@hgzimmerman
Copy link
Owner

hgzimmerman commented Feb 11, 2018

  • Give unique title constraint.
  • Create a reversible function that turns a title into a valid url string.
  • Allow querying of database for articles via title in addition to by id.
@hgzimmerman hgzimmerman added this to To do in Main Feb 12, 2018
@hgzimmerman hgzimmerman moved this from To do to In progress in Main Feb 12, 2018
@hgzimmerman
Copy link
Owner Author

It occurred to me after creating this issue that URL slug generating functions are not typically reversible.
Either some intense validation needs to be created to prevent the entry of title names that can't be reversible or the title is used to generate another column that will contain the slug.

I'm leaning towards the latter.

@hgzimmerman hgzimmerman moved this from In progress to To do in Main Feb 13, 2018
@hgzimmerman hgzimmerman moved this from To do to Backlog in Main Feb 13, 2018
@hgzimmerman
Copy link
Owner Author

I have slug included as a dependency now. Now I need to store the slug in the DB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Main
  
Backlog
Development

No branches or pull requests

1 participant