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

feat: Populate permits from metadata #377

Closed
wants to merge 5 commits into from

Conversation

pbkompasz
Copy link
Contributor

Resolves #368

@ubiquity-os ubiquity-os bot closed this Feb 3, 2025
Copy link
Contributor

ubiquity-os bot commented Feb 3, 2025

! You must be a core team member, or an administrator to start this task

@pbkompasz pbkompasz changed the title Feat pull permits feat: Populate permits from metadata Feb 3, 2025
Copy link
Contributor

github-actions bot commented Feb 3, 2025

Unused exports (1)

Filename exports
static/scripts/shared/auth/github.ts renderAugmentAccessButton

@ubiquity-os-deployer
Copy link

Copy link
Contributor

github-actions bot commented Feb 3, 2025

Preview Deployment
d1f7243ee46fb60d722e22b9d0c958c3ec82a460

@pbkompasz
Copy link
Contributor Author

@zugdev The PR got closed, can I reopen it or do I have to be assigned to the task?

}

// Using our metadata system we can easily GraphQL query for permits.
const permits = (await supabase.from("permits").select("*").eq("beneficiary_id", githubId)).data;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very wrong. Permits should load from GitHub not supabase

Comment on lines +44 to +48
// TODO
owner: "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
// TODO
tokenAddres: "0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",
tokenType: "ERC20"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't make sense should be read from permits

Comment on lines +52 to +54
// limit to previous 100 results or whatever is the max that GraphQL can return in a single shot
// check if they have already been claimed, if so, discard
// if unclaimed permits are found, import into the UI (we should already support multiple permits to be loaded in the UI)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic isn't here

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

Successfully merging this pull request may close these issues.

Automatic Population of Permits
2 participants