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

Add a (information) validity attribute to cards #53

Merged
merged 6 commits into from
Dec 27, 2021

Conversation

khcr
Copy link
Member

@khcr khcr commented Dec 19, 2021

The attribute validity can have values correct, outdated or disabled.
It is updated accordingly in the cards check task and used in the card's edit form.

@khcr khcr changed the base branch from master to v2/cards-update-check December 19, 2021 17:51
@khcr khcr requested a review from nkcr December 19, 2021 17:51
Copy link
Member

@nkcr nkcr left a comment

Choose a reason for hiding this comment

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

Much better 👍

@@ -9,6 +9,7 @@ class Card < ApplicationRecord

enum card_type: [:youth, :adult, :activist, :organization, :network, :training]
enum status: [:pending, :online, :incomplete, :change]
enum validity: [:correct, :outdated, :disabled]
Copy link
Member

Choose a reason for hiding this comment

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

I would use: [:maintained, :abandoned, :disabled]

Copy link
Member

Choose a reason for hiding this comment

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

Or [:maintained, :outdated, :disabled]...?

Copy link
Member Author

Choose a reason for hiding this comment

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

Or [:maintained, :solicited, :disabled], or [:maintained, :requested, :disabled] ?

Keran Kocher and others added 2 commits December 25, 2021 18:40
Co-authored-by: Noémien Kocher <nkcr.je@gmail.com>
@khcr khcr requested a review from nkcr December 25, 2021 22:42
@nkcr nkcr merged commit 3317d50 into v2/cards-update-check Dec 27, 2021
@nkcr nkcr deleted the v2/cards-validity branch December 27, 2021 12:24
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