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

ensure GIVbacks Eligiblity status on project details is correct #4763

Open
5 tasks
divine-comedian opened this issue Sep 23, 2024 · 10 comments
Open
5 tasks
Assignees
Labels
DeVerification Decentralizing Project Verification

Comments

@divine-comedian
Copy link
Contributor

divine-comedian commented Sep 23, 2024

When I "verify'/vouch a project from the admin panel I noticed it changes the GIVbacks Eligibility of the project to "Eligible" even though the project is not eligible to receive GIVbacks.

Screencast.2024-09-23.12.31.27.1.mp4

The field for GIVbacks Eligiblity on both the project details page and the project cards on "my projects" should consider two things

  1. the status of the project's GIVbacks eligiblity form
  2. if the field for isGIVbacksEligible is true or false

It should not be related to the projects verified or "Vouched" status

AC

From project details page and project cards on my projects page:

  • changing project's status to vouched/verified from admin panel DOES NOT change GIVbacks eligiblty status to eligible
  • changing project's status to vouched/verified from admin panel DOES NOT change GIVbacks eligiblty BADGE
  • status of givbacks eligiblity updates correctly based on status of application form "not started = not eligible, in progress = Incomplete, submitted = submitted"
  • givbacks eligiblity shows as eligible when application form is approved in admin panel
  • can revoke givbacks eligiblity status from admin panel and reflects on project status for givbacks eligiblity badge

view guide here for how to manage project status from admin panel -> https://www.notion.so/giveth/Giveth-Verification-Team-Guide-1043ab28d48c80d4bd5bff85259a890c?pvs=4#7742cef0a680423cadcc8d2efbd9caea

@divine-comedian divine-comedian added the DeVerification Decentralizing Project Verification label Sep 23, 2024
@mateodaza
Copy link
Member

This is ready to test @divine-comedian

@divine-comedian
Copy link
Contributor Author

@LatifatAbdullahi passing to you for QA

@LatifatAbdullahi
Copy link

LatifatAbdullahi commented Sep 24, 2024

@mateodaza

This issue doesnt seem fixed, please take a look

After updating the status of a new project to "Verified" from the Admin panel, the Givback Eligibility status was still updated to "Eligible" on the Project details page as shown below. Also the "Is Givback Eligible" remains "No" at the Admin panel.

elli

snn

sj

@LatifatAbdullahi
Copy link

LatifatAbdullahi commented Sep 25, 2024

@mateodaza the initial issue with verifying automatically changing status to Givback eligible has been fixed.
Although the status was initally "Submitted" for Givbacks eligibility, after verifying the project the status changed to "Ineligible" not sure if this is the right flow @divine-comedian .

Also, after approving projects, the GIVback status is updated on Project card , the top of the Project details page but not in the project details page, it still shows "Ineligible"

yy

iiii

sj

@divine-comedian
Copy link
Contributor Author

divine-comedian commented Sep 25, 2024

@LatifatAbdullahi this seems like a bug

If a project has the GIVbacks eligible badge, isGIVbacksEligibile is true from the project data then it should show "Eligible" next to the GIVbacks eligibility project status on the card.

Can you confirm what you did?

You went to the project in the admin panel and hit verify - this was NOT from approving the verificaition application form, correct?

@LatifatAbdullahi
Copy link

@divine-comedian Yes this is a bug,
What I said was fixed was the issue I reported last night.

From the Admin panel, went to the "Project" section to verify the new project.

The project became verified/vouched.

On the project details page, you can see the "Vouched" badge and the Givback Eligibility changed from "submitted" to "Ineligible".

From the Admin panel "Project verification form" section, I approved the project.

The Givback eligible badge is shown on the Project card, Top of the project details page but the
Givback Eligibility status remained "Ineligible".

@divine-comedian
Copy link
Contributor Author

Thanks! I tested it out and it seems something is being handled wrong in the admin, just as you suggested latifat

I made a table here that hopefully can carefully explain the impact of each action in the admin and what the expected outcome should be on the projects status for a variety of conditions

there are 4 columns:

  1. the current status of the 3 relevant values: givbacks form, verified, isGIVbacksEligible
  2. the action being applied
  3. the expected status of the 3 values
  4. notes (error conditions etc..)

you can also view the sheet in google where it might look a bit easier to follow
https://docs.google.com/spreadsheets/d/1RTvg0YaMjEyZOgUpW1i0YQPnnlEPgHZM7ZDXq5e39ro/edit?usp=sharing

current status action expected status notes
givbacks form verified isGIVbacksEligible givbacks form verified isGIVbacksEligible
not started FALSE FALSE verify project (vouch) not started TRUE FALSE
incomplete FALSE FALSE verify project (vouch) incomplete TRUE FALSE
submitted FALSE FALSE verify project (vouch) submitted TRUE FALSE
approved TRUE TRUE verify project (vouch) approved TRUE TRUE (no status change)
declined FALSE FALSE verify project (vouch) declined TRUE FALSE
not started TRUE FALSE revoke badge (vouch) not started FALSE FALSE
incomplete TRUE FALSE revoke badge (vouch) incomplete FALSE FALSE
submitted TRUE FALSE revoke badge (vouch) submitted FALSE FALSE
approved TRUE TRUE revoke badge (vouch) throws error -- -- (cannot revoke Vouched badge of GIVbacks eligible project)
declined TRUE FALSE revoke badge (vouch) declined FALSE FALSE
not started TRUE FALSE approve application form (givbacks eligible) throws error TRUE -- (cannot approve unsubmitted or incomplete application)
not started FALSE FALSE approve application form (givbacks eligible) throws error FALSE -- (cannot approve unsubmitted or incomplete application)
incomplete TRUE FALSE approve application form (givbacks eligible) throws error TRUE -- (cannot approve unsubmitted or incomplete application)
incomplete FALSE FALSE approve application form (givbacks eligible) throws error FALSE -- (cannot approve unsubmitted or incomplete application)
submitted TRUE FALSE approve application form (givbacks eligible) approved TRUE TRUE
submitted FALSE FALSE approve application form (givbacks eligible) approved TRUE TRUE
approved TRUE TRUE approve application form (givbacks eligible) approved TRUE TRUE (no status change)
approved FALSE TRUE approve application form (givbacks eligible) approved TRUE TRUE (should be impossible for verified = false while GIVbacks eligible = true
declined TRUE FALSE approve application form (givbacks eligible) approved TRUE TRUE
declined FALSE FALSE approve application form (givbacks eligible) approved TRUE TRUE
not started TRUE FALSE reject application form (givbacks eligible) throws error TRUE -- (cannot reject unsubmitted or incomplete application)
not started FALSE FALSE reject application form (givbacks eligible) throws error FALSE -- (cannot reject unsubmitted or incomplete application)
incomplete TRUE FALSE reject application form (givbacks eligible) throws error TRUE -- (cannot reject unsubmitted or incomplete application)
incomplete FALSE FALSE reject application form (givbacks eligible) throws error FALSE -- (cannot reject unsubmitted or incomplete application)
submitted TRUE FALSE reject application form (givbacks eligible) declined TRUE FALSE
submitted FALSE FALSE reject application form (givbacks eligible) declined FALSE FALSE
approved TRUE TRUE reject application form (givbacks eligible) declined TRUE FALSE
approved FALSE TRUE reject application form (givbacks eligible) declined FALSE FALSE
declined TRUE FALSE reject application form (givbacks eligible) declined TRUE FALSE (no status change)
declined FALSE FALSE reject application form (givbacks eligible) declined FALSE FALSE (no status change)

@mateodaza
Copy link
Member

@divine-comedian Yes this is a bug, What I said was fixed was the issue I reported last night.

From the Admin panel, went to the "Project" section to verify the new project.

The project became verified/vouched.

On the project details page, you can see the "Vouched" badge and the Givback Eligibility changed from "submitted" to "Ineligible".

From the Admin panel "Project verification form" section, I approved the project.

The Givback eligible badge is shown on the Project card, Top of the project details page but the Givback Eligibility status remained "Ineligible".

This is an admin mess, basically the badge is checking the verification form first and then the real isGivbackEligible, that's why the false positive

Just pushed a change where we ONLY check on isGivbackEligible as the main truth - all other statuses should remain the same

@divine-comedian
Copy link
Contributor Author

@LatifatAbdullahi ready for test again based on the original AC

@LatifatAbdullahi
Copy link

Currently unable to test updating Givback eligibility status due to this issue : #4796

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DeVerification Decentralizing Project Verification
Projects
Status: QA
Status: QA
Development

No branches or pull requests

4 participants