-
Notifications
You must be signed in to change notification settings - Fork 35
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
Added is_private field to Review Response table #1152
base: develop
Are you sure you want to change the base?
Conversation
Invoices made payable by anyone
Merge migration wasn't downgrading for some reason
@lucas-meyer-7 Thanks this is a good start for this feature. Now to complete it there is still updating everywhere a review response is retrieved to filter what's returned depending on the type of user viewing them. You could probably get a good start by searching the usages of the ReviewResponse class and follow the code paths to the APIs that call them. We also would need to update and add tests for this feature. P.S. Merge in this branch here to this one. It fixes the build for now then you can see what's breaking in the CI pipeline. P.P.S I'm a bit at capacity for the next week or so my reviews have to be a bit shorter. Let me know though if this isn't enough to go on for the next few days. |
api/migrations/versions/e23b638b03cc_add_is_private_to_review_response.py
Outdated
Show resolved
Hide resolved
Hi @amritpurshotam Thank you for your review. I appreciate the effort. About the "P.S. can we remove the commented code?", I am not sure exactly how the requests are handled (I'm very new to using I have another question, not related to this feature but about applying for events [1] (see screenshots below for context). When I run the project locally, and apply to an event that I created locally, it throws an error [2] (Line 1095). This is because 1: UI component - applying for a new event 2: Code in |
Here's the docs. Have a look at the
This is correct, there will still need to be updates made to the front end. And then the last part with your errors. I think that sounds like an error with the data. Did you insert the data manually? Have a look at these ERDs to see a higher level view of the tables and hopefully a better of the view of the app without having to click through every screen. There's a lot of configuration and access granted to the system based on the type of user you are and it's easy to get wrong (when doing so manually) and quite time consuming as well to do so through the front end. My advice for now though is not to get too caught up in the front-end and try to gain understanding from reading the API code, tests, and these tables. |
@amritpurshotam Thank you for your answers and advice. I'll quickly make the changes required for this feature, excluding the front-end code required to make the |
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.
@lucas-meyer-7 Thanks this looks good so far. Some minor points though, can you change the branch you're merging into back to develop
. Then merge in the fix/payment-test
into this branch i.e.
git fetch
git checkout db_review_response_private_field
git merge fix/payment-test
I know this will clutter things a bit temporarily but once the fix/payment-test
branch is merged into develop
those changes will automatically disappear from your PR. This is just to get the build passing on your branch again and we can rely on all the automated checks it provides.
Otherwise going to leave this PR as is. We can only approve once the feature is complete. Feel free to branch off further from here though if you need the separation.
@amritpurshotam Ready for merge? |
@lucas-meyer-7 Thanks this looks great with the build working again. Unfortunatelt thought there's still a bit more to do. Since we've added the is_private column we still have to update the places that access review responses and filter based on the permissions of the user. Then the tests would need to be updated to reflect that filtering. And the front-end to specify whether a review response is private or not. I know this is still a lot. Something you can do is branch off here to continue the above and open PRs that merge into this branch. |
Hi @amritpurshotam , I think that you are right, and I made the DB changes that you recommended for the feature of specifying whether a response from a reviewer is private/public.