Skip to content

AO3-7425 Set word count when posting draft from Edit Tag page#5803

Open
mellowmarsach wants to merge 2 commits into
otwcode:masterfrom
mellowmarsach:AO3-7425
Open

AO3-7425 Set word count when posting draft from Edit Tag page#5803
mellowmarsach wants to merge 2 commits into
otwcode:masterfrom
mellowmarsach:AO3-7425

Conversation

@mellowmarsach
Copy link
Copy Markdown
Contributor

Issue

https://otwarchive.atlassian.net/browse/AO3-7425

Purpose

Fix word count when posting draft from Edit Tag page

Credit

mellowmarsach

@mellowmarsach mellowmarsach marked this pull request as ready for review May 11, 2026 11:27
@sarken sarken changed the title AO3-7425 - Fix word count when posting draft from Edit Tag page AO3-7425 Set word count when posting draft from Edit Tag page May 11, 2026
Copy link
Copy Markdown
Collaborator

@sarken sarken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! I just have a couple small suggestions.

Comment thread features/works/work_edit_tags.feature Outdated
Comment on lines +58 to +65
When I am on imit's works page
Then I should see "Drafts (1)"
When I follow "Drafts (1)"
Then I should see "Freeze Tag"
And I should see "Edit Tags" within "#main .own.work.blurb .actions"
When I follow "Edit Tags"
Then I should see "Post"
When I press "Post"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a little redundant to check for the presence of the things we're going to interact with (the tests will fail if they're not there to interact with), so could we shorten lines 58-65 a bit to something like:

  And I view the work "Freeze Tag"
When I follow "Edit Tags"
  And I press "Post"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code works. Thank you for the feedback!

Comment thread app/controllers/works_controller.rb Outdated
@@ -405,6 +405,8 @@ def update_tags
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it was already here, but could you remove this code comment? It's definitely misleading because we're posting the draft, not saving it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants