Skip to content

Copilots with "requested" invite can see projects in the list #419

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

Closed
maxceem opened this issue Dec 12, 2019 · 16 comments
Closed

Copilots with "requested" invite can see projects in the list #419

maxceem opened this issue Dec 12, 2019 · 16 comments
Labels
Milestone

Comments

@maxceem
Copy link
Contributor

maxceem commented Dec 12, 2019

Actual behavior

When we request an invitation for a copilot to the Topcoder Team they can see the project listed.

Expected behavior

When we request an invitation for a copilot to the Topcoder Team they shouldn't see such a project listed until they have the invite request accepted.

How to reproduce:

  1. Invite pshah_copilot using pshah_manager to any project as copilot (using Topcoder Team dialog).

    image

  2. As pshah_manager doesn't have "Copilot Management" permission, pshah_copilot wouldn't be added to the project but his invite would be requested and waiting for any Copilot Manager to "accept" it. Don't accept it.

  3. Now log in with pshah_copilot and you would see the project where copilot has "requested" invite listed on the project listing page:

    image

  4. At the same time if Copilot would try to open such a project, they would get error 404, as expected, because copilot is not a member.

This is an existent issue in V4 which has been also migrated to V5.

@vikasrohit, could you please confirm that it's a valid issue and the actual behavior is not desired.

@vikasrohit
Copy link

Agreed. we need to fix it before the release. It is a bug.

@vikasrohit
Copy link

It is fixed, @maxceem ?

@maxceem
Copy link
Contributor Author

maxceem commented Dec 23, 2019

Fixed in DB request, but not in ES. I will take care of it asap via F2F.

@maxceem
Copy link
Contributor Author

maxceem commented Dec 23, 2019

Run F2F for this https://www.topcoder.com/challenges/30111699

@maxceem
Copy link
Contributor Author

maxceem commented Dec 24, 2019

Got the solution from F2F. @vikasrohit would like me to create a HOTFIX or just merge it to dev?

@vikasrohit
Copy link

Hotfix is good as we have sufficient time in this week to monitor. Hope the changes are not big, I mean the probability of any regression is very less.

@maxceem
Copy link
Contributor Author

maxceem commented Dec 24, 2019

@vikasrohit there are hotfixes:
PROD #433
DEV #434

@vikasrohit
Copy link

@maxceem merged the dev version first, please let me know it works for you in dev (once the build is complete).

@maxceem
Copy link
Contributor Author

maxceem commented Dec 24, 2019

@vikasrohit Works well for me on DEV.

@vikasrohit
Copy link

Deployed to the production.

@lakshmiathreya
Copy link

@vikasrohit is 2.0.0 the correct milestone? Also, am unable to edit this Issue ... would like to verify and close it ...

@lakshmiathreya
Copy link

cc @nithyaasworld

@vikasrohit
Copy link

@vikasrohit is 2.0.0 the correct milestone? Also, am unable to edit this Issue ... would like to verify and close it ...

I am not sure but I usually include the hotfixes in the upcoming milestone because until recently github didn't allow to include an issue in closed milestone. However, now as it allows us to include the issues in closed milestones, I am thinking of including such hotfixes in last closed milestone. fyi, release for the hotfix is https://github.com/topcoder-platform/tc-project-service/releases/tag/2.0.0.1

@lakshmiathreya
Copy link

lakshmiathreya commented Dec 24, 2019 via email

@vikasrohit
Copy link

Creating milestone for a hotfix seems overkill to me, that is why we don't create milestones for them. However, as it is a new release I appended .1 to the previous release 2.0.0. I think we can keep hotfixes in previously closed milestone and tag a separate release.

@maxceem
Copy link
Contributor Author

maxceem commented Jan 6, 2020

Fix for this issue has been pushed to PROD as a HOTFIX and might be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants