Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Status "draft: true" name is at odds with how it's used #2519

Closed
jpmedley opened this issue Apr 6, 2020 · 7 comments
Closed

Status "draft: true" name is at odds with how it's used #2519

jpmedley opened this issue Apr 6, 2020 · 7 comments

Comments

@jpmedley
Copy link
Contributor

jpmedley commented Apr 6, 2020

Recently an article was accidentally merged with draft: true field set. The writer in question was under the impression that this was needed to correctly indicate the state of the article. However this designation is redundant with the fact that the article is unapproved and unmerged. It would seem to be unneeded for this use.

What the flag is intended to do is hide a finished article publishing on the site. A finished article is definitely not a draft.

I propose that draft: true be changed to something like hidden: true or unpublished: true. I care less about what this field is called than I do about clearing the ambiguity around it.

If draft: true has another use case I've overlooked, then I further propose taking some action to address that case rather than maintaining the status quo.

@jpmedley jpmedley added the eng - bug Something broke! label Apr 6, 2020
@kaycebasques
Copy link
Contributor

I'm fine with the change but it seems like a fair of amount of work for not much gain. If @robdodson also agrees to the change and you want to submit the PR, @jpmedley, then I think that would be the path forward. I'm doubtful that Rob's team would prioritize fixing the bug but that's just my take and I'll let Rob agree or disagree with that. So if no one agrees to work on this we should close it.

@robdodson robdodson removed their assignment Apr 10, 2020
@kaycebasques
Copy link
Contributor

@jpmedley in the example that you mentioned, did the author intend for the article to get published and they were confused about why it wasn't showing up?

@robdodson robdodson added discussion and removed eng - bug Something broke! labels Apr 10, 2020
@jpmedley
Copy link
Contributor Author

That is correct.

@jpmedley
Copy link
Contributor Author

Sure, you could make sure this is clear in the handbook. I'd do that anyway. If the handbook is the solution to every problem, especially one's we could automate, it will get bigger, while the number of people who have completely internalized it gets smaller.

@robdodson
Copy link
Contributor

Based on this comment it seems that Thomas was confused as to who was supposed to actually change the flag. It seems like he may have added the original draft: true out of an abundance of caution (not wanting the post to get published too early) but it's just as likely he would have done the same thing if the property was named unpublished: true.

FWIW, I don't think it's necessarily wrong to put draft: true on an article while you're still working on it in a PR. It provides an extra level of protection in case it does, for whatever reason, get accidentally merged. It also seems like the person submitting the PR should be the one to remove draft: true as they're ultimately the one deciding when the article should go live.

A reviewer can give them a heads up, and we can probably add a linter warning of some kind to flag that draft: true is set.

@jpmedley
Copy link
Contributor Author

I'm not sure I agree with all of that, but I agree with adding to the linter warning.

@stale
Copy link

stale bot commented May 14, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. To prevent his from happening, leave a comment.

@stale stale bot added the stale label May 14, 2020
@stale stale bot closed this as completed May 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants