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

Remove featured, tag, author & role API params #6005

Merged
merged 1 commit into from
Oct 27, 2015

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented Oct 26, 2015

This PR:

  • removes the featured, tag and author params from the Posts API
  • removes the role param from the Users API
  • removes all of the the code which is no longer needed as a result.

The featured and role params were only ever used in tests as far as I am aware.

The tag and author params were used by the frontend controller and rss generator, which are switched over in #6000 and #6004.

The new filter parameter implementation does not yet support a role filter on users, this can be re-added if and when it is needed. The new implementation also does not yet properly validate invalid tags / authors - this was recently added to the old style parameters, and should be reimplemented.

The @todos in this PR need to be broken out into issues so we don't lose track of them, but none of them are strictly required for an initial version of the public API tools.

refs #5943

  • removed featured, tag and author parameters from posts API
    • featured was only used in tests
  • removed role filter from users API
    • role was only used in tests
  • fixed up the tests, skipping those that don't quite work yet

refs TryGhost#5943

- removed featured, tag and author parameters from posts API
   - featured was only used in tests
- removed role filter from users API
   - role was only used in tests
- fixed up the tests, skipping those that don't quite work yet
sebgie added a commit that referenced this pull request Oct 27, 2015
Remove featured, tag, author & role API params
@sebgie sebgie merged commit 9dc4efc into TryGhost:master Oct 27, 2015
kevinansfield added a commit to kevinansfield/Ghost that referenced this pull request Oct 27, 2015
refs TryGhost#6005
- updates use of the query params removed in TryGhost#6005 to use new `filter` param
@sebgie sebgie deleted the old-filter-clean branch October 27, 2015 12:54
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