-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Update tag management UI with the post count #4683
Comments
Mind me taking this one? Started working on this already while testing API. |
@ekulabuhov go for it ;) |
Hi @ekulabuhov how are you getting on with this? This is one of the last pieces of tag management and we are aiming to ship it on Monday, so it'd be great if you can let us know if you're able to do it over the weekend. Thanks! |
Hi @ErisDS no problem, give me an hour & I'll be done with it. |
@ErisDS, the only part that is missing from my last commit is: "making sure it doesn't get sent back to the server". Do you mean the data included in the XHR request? Is that implemented anywhere else in the code? I can see ghost sending properties like "created_by", "creation_date", etc. when saving tags/posts. Guess they shouldn't be there either? Thanks! |
Hi @ekulabuhov, yep, this has been implemented for the post model: https://github.com/TryGhost/Ghost/blob/master/core/client/serializers/post.js#L56 |
Hi @ErisDS, last part is included now. Unfortunately, I've broken "New Tag" functionality on the Settings screen, as the new tag does not appear in the list when you press that button anymore. I spent quite a while trying to debug this problem and narrowed it down to a change in this line: Now, I don't have enough experience with emberjs to tell what's wrong with that line. Could somebody help me here, please? Thank you! |
@ekulabuhov I made a couple comments on #4689. If you update the PR to address them then I'll merge it as a partial solution and follow it up with a new PR to close this issue out. To answer your question, the reason you're not seeing the new tag in the list has to do with the data that's provided to the controller by |
closes TryGhost#4683 - added post count to 'delete tag' modal - fixed lint errors - preventing extra data to be sent to server - adjustments suggested by @jaswilli
Thanks @jaswilli ! I made suggested changes. I'm sorry, but I'm not sure if you got me right (or maybe I didn't get you). This is the current behavior on master: Both use |
Thanks for the screenshot, I see what you're saying now. Apparently I misspoke above and the container provided by It's actually a good thing as we don't want a new, unsaved tag to show up in that list. In my follow-up PR I'm going to use a |
Once #4654 is merged, it will be possible to add the post count to the tag management UI.
This will require:
?include=post_count
N/A
in the UI with the real post countI think that's it :)
The text was updated successfully, but these errors were encountered: