Pre-fill some NGO information based on their CUI
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- api, full-stack
Research direction
Start by reviewing the account-creation flow around the CUI Field and Official Name Field, then read the linked ANAF endpoint documentation and compare the sample request and response. Done means a reliable state-source query can use the NGO's CUI to pre-fill its name, keep that name read-only during signup, and preserve admin editing after the organization joins.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
Some of the data we request from NGOs already exists in some public endpoints.
At the same time, some NGOs may provide wrong data (intentionally or by mistake).
Calling such an endpoint could help us pre-fill some of the information NGOs are supposed to give us and, at the same time, make sure that they are providing accurate information.
Describe the solution you'd like
On account creation, the CUI Field should be the first field to be filled by NGOs, and the Official Name Field should become read-only (while keeping the ability to edit it in the admin, after the organization joins NGO Hub – some organizations change their name).
The name of the organization should be filled out based on the information from a query made with the CUI of the NGO.
Sample request:
curl -H 'Content-Type: application/json' \
-d '[{"cui":36317167, "data": "2024-07-11"}]' \
-X POST \
https://webservicesp.anaf.ro/RegCult/api/v2/ws/cult
Corresponding response:
{
"cod": 200,
"message": "SUCCESS",
"found": [
{
"cui": 36317167,
"data": "2024-07-11",
"denumire": "ASOCIATIA CODE FOR ROMANIA - CODEAZA PENTRU ROMANIA",
"adresa": "MUNICIPIUL BUCUREŞTI, SECTOR 3, PŢA. ALBA IULIA, NR.7, BL.I 6, SC.1, ET.1, AP.6",
"telefon": "0741151350",
"codPostal": "31103",
"act": "DOSAR NR.34426/301/17/20.01.2017, 18856/301/234/07.10.2020",
"stare_inregistrare": "INREGISTRAT din data 14.07.2016",
"dataInceputRegCult": "2019-04-17",
"dataAnulareRegCult": " ",
"statusRegCult": true
}
]
}
Describe alternatives you've considered
If better endpoint/endpoints, with more accurate information, exist we should use that.
We just need to make sure the information is obtained from a reliable state source.
Additional context
To better understand the information from the endpoint, the CUI of different NGOs from the National Registry can be checked to better verify how it works
https://www.just.ro/registrul-national-ong/
- how the different properties change
- how quickly NGOs are available in this list
Other relevant ANAF URLs:
🔗 ANAF Services
https://www.anaf.ro/anaf/internet/ANAF/servicii_online/servicii_web_anaf
🔗 Endpoint docs
https://static.anaf.ro/static/10/Anaf/Informatii_R/index_cult_v2.html
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
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 code4romania/onghub
-
bug :bug:
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
code4romania/onghub#536 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
code4romania/onghub#648 ·
-
502 Bad Gateway Error When Downloading Table from 'ONG-uri' PageMay be free again @radulescuandrew claimed this 753 days ago, and no pull request is open. Openbug :bug: ready-for-deploy
code4romania/onghub#635 · 1 comment · 1 reaction · 1 assignee ·
-
bug :bug:
Difficulty 3/5 1-2 days Newbie friendliness 35/100
code4romania/onghub#631 ·
-
bug :bug:
Difficulty 3/5 1-2 days Newbie friendliness 42/100
code4romania/onghub#630 ·
All issues in code4romania/onghub
Similar issues
-
module-request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
appandflow/stim#1604 · 1 comment ·
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 92/100
lingdojo/kana-dojo#31060 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
paperclipai/paperclip#14173 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day