-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Grant categories for new grants #5615
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5615 +/- ##
=========================================
- Coverage 29.51% 29% -0.52%
=========================================
Files 265 271 +6
Lines 22912 23713 +801
Branches 3331 3450 +119
=========================================
+ Hits 6763 6877 +114
- Misses 15871 16562 +691
+ Partials 278 274 -4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Great Job ALL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs testing.. and also to be DRY'd up
@vince0656 Could you ensure that search bar works as expected and categories does not |
Ok. Hope to look into these requests at some point today. Thanks guys👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- DRY code comments from @owocki need to be addressed
- need a video recording of how it works + ensure design doesn't break on mobile/ tablet
- how does the card look when there is no tag for a grant.
- could you also double check if search (the comment i left above) works as expected
Just giving you an update that I've got #5637 coming in which might give migration conflicts => you would have to recreate the migration file if 5637 get's in earlier
Additionally checking out the code + syncing up with scott A grant could be associated with a multiple categories. 1. New Grant -> select multiple categories -> get stored as comma-separated values
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
this feedback makes sense to me... but it is a slight change in scope.. happy to provision more ETH to this if it helps get it across the finish line |
@owocki happy to do the change in scope if you chuck more eth. Cheers |
sure - let me know how much you think is fair
…On Mon, Dec 16, 2019 at 1:02 PM Vincent ***@***.***> wrote:
@owocki <https://github.com/owocki> happy to do the change in scope if
you chuck more eth. Cheers
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5615?email_source=notifications&email_token=AAD5PCKAXNTIKTPVVFT3LILQY7NGVA5CNFSM4JX2JSC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG75ITQ#issuecomment-566219854>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD5PCNBYREI767CGU3LO3LQY7NGVANCNFSM4JX2JSCQ>
.
_________________________________________
gitcoin is live and has generated over $2.7mm for Open Source Software - see
our results <https://gitcoin.co/results>
|
@vince0656 feel free to hit me up if you hit a roadblock cause I'd like to get this in by next week if possible |
Hi @owocki and @thelostone-mc. Sorry about the delay in replying, I’ve had various house emergencies to attend to this week but I’ve pretty much sorted them now. I’ve had a think and think that splitting into two to get it over the line is a good idea. HOwever, I think the first part needs to enable support for multiple categories now but only store 1 category. I.e the django backend has support for multiple but UI only allows selecting one as it currently does. That way, the model doesn’t need messing with second time round. Second time round I can make the UI changes to enable this. What do you guys think? Given ETH is going down etc is it fair to ask for another 0.6 ETH for the second bit which also covers some bits in the first part? |
@vince0656 0.6 ETH is fine.. :make_it_so: ! can u have a PR thats ready for merge by next week? gitcoin grants round 4 is very soon so we have a sense of urgency here |
@owocki I think that's fair - let's get it done 👍 |
Fingers crossed these build issues are sorted 🤞 |
Next need to make a |
@vince0656 you can check out the bounty model keywords as a reference cause it's the same thing |
@vince0656 sounds good! looking fwd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great Work @vince0656 . 🥇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice Code @vince0656
@vince0656 you think we'd be able to get this in next week ? |
@thelostone-mc apologies - working on it now |
@vince0656 would you be able to get this to the finish line ? |
@thelostone-mc apologies. I've not been very well but am going to jump back into this |
Having to run |
ok so creation, update and category display are all working with the many to many field / architectural changes requested by @danlipert. I'm going to wrap this up and hopefully record a video to attach to this PR to show this in action |
@thelostone-mc @octavioamu @danlipert @owocki we are ready to go 🚀 |
@vince0656 https://twitter.com/MesquitaDaniell/status/1234558877984808965 im seeing several things that dont make sense in prod
gitcoin grants round 5 is less than 2 weeks away. can we get a fix PR in for this? |
That's why my bio says "Since 2013 irritating developers on GitHub, with more than 1000 issues open". It gets good results for benefit of all of us. I didn't quickly noticed it and only remembered now, but yes, it showed the "Edit" button when I'm not logged (phone). https://gitcoin.co/grants/455/floflis-os I have a question: why a contract for a grant? I mean, it makes sense but, what and how it does? |
Hey @owocki ! Looks like the code has been deployed in production and there seems to be a disconnect between people's expectation of the feature and how it's been designed to work. I think people are expecting the field to allow them to add custom tags. However, there are only a restricted set of categories people can actually choose. Regarding the grant mentioned in the tweet, looks like you may be able to create a grant without any categories which is probably not desired. people seeing edit view for grants they don't own - not sure how this is possible and shouldn't be related to work I've done as I made changes to the edit form and not the functionality that triggers the form. The categories available depend on the grant type of the grant being created. For example, the categories that one can select for tech grants can be queried by hitting: https://gitcoin.co/grants/categories?type=tech for media grants: https://gitcoin.co/grants/categories?type=media The free text search field for categories (when creating and editing a grant) operates like the team members one and therefore allows you to search for one of the above categories based on the grant type selected. If it's easier, it could be changed to a drop down. Once the categories have been added, people can then search by category on the grant explorer page. Video Demonstration and then category filtering on the grant explorer as follows: Let me know how you want to proceed as I thought this was all approved and wrapped up |
Actually, a pure drop down will not allow multiple category selection. However, there may be a way to preview all possible options to filter using select2js |
@owocki looks like you can do it like this instead: https://select2.org/getting-started/basic-usage#multi-select-boxes-pillbox This way, people know what they can select and can select multiple |
yeah we have select2 on the site already.. id recommend using that instead of the autocomplete also we should not make the categories look editable when ur not viewing ur own grant. thats confusing |
@owocki let me take a look and open up a PR for these quick fixes. Thanks |
@thelostone-mc this ok to payout? |
Description
Work to enable grant categories to be defined on creation of a grant. A user can specify multiple categories for a grant which then appear on the grant's card on the grant explorer and can be edited later on the details page. Users can now also select categories on the grant explorer and view all grants that relate to that category.
Refers/Fixes
#5456
Testing
Appropriate unit tests have been added
Video Demonstration
I have separated this in two parts. Firstly, creation and updating of both types of grants as follows:
https://drive.google.com/open?id=1YeoU0InrJAnDGLYciKBoC8egZ1NA_o7a
and then category filtering on the grant explorer as follows:
https://drive.google.com/open?id=1FHwHSiSgt4AxF4y-YUrYmH_1pKEQCHkt
It's taken a while to get to the point where all of these features are robust and stable so I'm very happy with where the code is at this point