-
Notifications
You must be signed in to change notification settings - Fork 0
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
Stable: Query for Category/Tag List #5
Comments
Currently @dshanske and @swentel have implemented this in Wordpress, Drupal and Indigenous for Android. I have also implemented this in my personal website software, Abode. @dshanske and @swentel I'm not sure of the exact values that you all return, but I suggest that it returns the following: The following example would be returned as part of the ?q=category query. {
"categories": [
"tag1",
"tag2",
"tag3",
"tag4",
"tag5",
]
} The follow example would be returned as part of the ?q=category&search=indie query. {
"categories": [
"indieweb",
"indieweb-goals",
"indienews"
]
} The reason is because when you look at To me this translates to a JSON object with a |
Both wordpress and Drupal return an array. There's no property 'categories' or anything else in both implementations. Regarding post-types: it's returned in the q=config request which can contain other elements as well. There's two things I can think of that probably hold me back for changing it at the moment.
Now, of course, this is still experimental, so if everyone is up for setting a date to push releases, that's totally fine for me. We can always broadcast this somewhere - maybe we should have a page on indieweb where we can announce these kind of things and push it onto the newsletter. Some sort of 'new or upcoming releases for software' (even including security releases), that actually sounds like a good idea :) (also now that I'm writing this, the title 'Query for Supported Vocabulary' https://indieweb.org/Micropub-extensions#Query_for_Supported_Vocabulary is confusing to me, but that's my Drupal background of course. Something like 'Query for support post types' would make more sense there, at least imo) |
I am fine with coordinated releases |
That makes sense. Definitely a coordinated release can be tricky but since it’s experimental, hopefully it wouldn’t be too disruptive. I know when the “Support Vocabulary” or “Post Types” was discussed, @aaronpk made a point to have it embedded within a JSON attribute. He might be able to shed some more light on why that was and it might help explain if it is important here as well |
And also (after a night of sleep), your proposal allows to easily extend in the future without being disruptive then. Paging comes to mind. So yes, we should probably go for it :) |
Changed in dev branches of Drupal and Indigenous. |
* Add file properties to input array to pass to after_micropub action * Amend category to wrap in descriptive key to match other properties see indieweb/micropub-extensions#5 * Add search parameter to category * Query Post List * Add empty config query to media endpoint * Update query handling * Bump version
Pushing a stable version that uses the new category markup and adds search |
oh, I won't be able to release before next weekend or so |
released yesterday! |
This will be live in Micro.blog later this week as well ( |
Wow that’s awesome!! |
Querying for tags is stable, however this remains open for discussion of the query modifier search. |
Discussion today in the Micropub Popup session: switch to using a |
Closed in favor of #34 |
Discussion for an extension that allows a Micropub endpoint to return a list of categories that it has already used in the past. There is also an idea of being able to search for categories for an auto-complete.
(See https://indieweb.org/Micropub-extensions#Query_for_Category.2FTag_List)
The text was updated successfully, but these errors were encountered: