Add method to generate the contribution information from a token
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- backend-api-design
Research direction
No file or test is named. Start by locating the forge.from_json entry point and any existing token-handling APIs, then compare the generated object with the requested Contribution shape and decoded token fields. Done means the method automatically produces the specified agent data from a decoded Nexus token.
Written by the indexing model from the issue text.
Description
Add a method to generate automatically a contribution object with the shape:
"type": "Contribution",
"agent": {
"id": f"https://bbp.epfl.ch/nexus/v1/realms/bbp/users/{decoded['preferred_username']}",
"type": ["Agent", "Person"],
"givenName": decoded["given_name"],
"familyName": decoded["family_name"],
"name": decoded["name"],
"email": decoded["email"]
}
})
where decoded is the Nexus decoded token:
decoded = jwt.decode(TOKEN, "secret", audience="https://slack.com", options={"verify_signature": False})
- Dominant language
- Python
- Stars
- 52
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BlueBrain/nexus-forge
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BlueBrain/nexus-forge#235 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
BlueBrain/nexus-forge#422 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
BlueBrain/nexus-forge#421 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
BlueBrain/nexus-forge#417 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 25/100
BlueBrain/nexus-forge#412 · 1 comment ·
All issues in BlueBrain/nexus-forge
Similar issues
-
link-rot
Difficulty 1/5 Under an hour Newbie friendliness 67/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
developmentseed/titiler-cmr#265 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Insecure Brotli version <1.2.1Possibly taken @jamescw19 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
stac-utils/stac-fastapi-pgstac#438 · 1 reaction ·
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day