-
Notifications
You must be signed in to change notification settings - Fork 168
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
"Unknown" when code is missing. #558
Comments
Hmm... this is a good point. It's a weird edge case because there's:
and to distinguish between 2 and 3, we added "not-implemented" as a way to flag the system that the concept doesn't exist. I think it even allows a comment with it too. But this is a another case, a case 4. Where it is valid (#1) but code is empty/blank. And maybe that's a good point, it should just be empty and post a comment, though I think the original thought is "code" is required and "comment" is optional. So if they drop "code", the idea is it goes against the ideal syntax of the file and how it should work. Let me brew on this a bit more. I think you're probably right something needs to happen, I'm just pondering different answers at the moment. 🤔 |
This issue has been inactive for 346 hours (14.42 days) and will be unassigned after 62 more hours (2.58 days). If you have questions, please leave a comment or let @geekygirlsarah know on Twitter or by email. If you are still working on this issue, that's fine. Please comment here to tell the bot to give you more time. |
Leaving a comment as I said I'd return to this and haven't yet. |
I guess this is fine to leave in, however, I'd like the |
Right now I am unable to code, because I don't have a computer with me, I had to travel to Mexico because my grandma died, so I've been mourning her. In which way should it be changed? We have proposed a few ideas.
|
This issue has been inactive for 341 hours (14.21 days) and will be unassigned after 67 more hours (2.79 days). If you have questions, please leave a comment, message @codethesaurus or @geekygirlsarah on Twitter, or email [email protected].If you are still working on this issue, that's fine. Please comment here to tell the bot to give you more time. |
Commenting to leave this open. Let's go ahead with it. If code or comment is there, it's not "unknown". One of them has to exist and can't be empty (empty string). |
This issue has been inactive for 347 hours (14.46 days) and will be unassigned after 61 more hours (2.54 days). If you have questions, please leave a comment, message @codethesaurus or @geekygirlsarah on Twitter, or email [email protected].If you are still working on this issue, that's fine. Please comment here to tell the bot to give you more time. |
This issue has been inactive for 408 hours (17.00 days) and is past the limit of 408 hours (17.00 days) so is being unassigned.You’ve just been unassigned from this ticket due to inactivity – but feel free to pick it back up (or a new one!) in the future! Thank you for your interest in contributing to this project. |
Description
It will remove the "Unknown" message which is shown on the reference page if the concept is VALID but it has no "code" text.
I agree, "Unknown" should be displayed, but I think only when the concept is not valid... not when there is no "code", because there might be a "comment" that can explain a concept, and NO "code" at all.
Explanatory image:
Requirements
Whenever the JSON file has a valid concept, it should consider that it MAY include "code" or "comment" or both at the same time.
On the models, on this function:
codethesaur.us/web/models.py
Line 134 in 229b527
I would change it to something like this:
On the views on this function :
codethesaur.us/web/views.py
Line 376 in 229b527
I would change it to something like this:
This way, the template will not create the div for the "code" section and the condition will make more sense
codethesaur.us/web/templates/concept_card.html
Line 5 in 229b527
Additional Notes
In the end, it could look something like this...
For the given code:
The "Unkown" is gone because the concept was well defined even when the "code" is not present (there is "comment")
Cheers, I would love to hear some feedback about this ;)
The text was updated successfully, but these errors were encountered: