Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Pre-fill some NGO information based on their CUI

Open
#574 0 comments 0 reactions 0 assignees View on GitHub

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

enhancement :rocket:

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from code4romania/onghub

All issues in code4romania/onghub

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.