Skip to content

Long term // REST API #4677

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

Open
wants to merge 392 commits into
base: develop
Choose a base branch
from
Open

Long term // REST API #4677

wants to merge 392 commits into from

Conversation

pavlo-mk
Copy link
Contributor

@pavlo-mk pavlo-mk commented Mar 7, 2025

Long term branch for REST API

❗ please merge back develop and permissions-rework-nov24 into that branch every day ❗

❗ ❗ Please create NEW TASK in the EPIC AB#210007: DRF endpoints❗ ❗
TODO List:

  • Move to REST core queries:
    • Profile (old GQL query Me) ** . AB#236631
    • All_BA (old GQL query AllBusinessAreas)
    • BA_Data (old GQL query BusinessAreaData)
    • query ProgrammeChoiceData
    • query AllProgramsForChoices
    • query AllProgramsForTable
    • etc.
  • Move Page by Page to REST:
    • Programme
    • Targeting
    • Payment Module
    • Grievances (huge)
    • RDI?
    • Accountability
  • Targeting refactors
    • we don’t refactor it at this level to REST. We will do it as whole Payment Module refactor

pkujawa and others added 30 commits April 1, 2025 16:07
# Conflicts:
#	src/frontend/src/restgenerated/models/Admin1Enum.ts
#	src/frontend/src/restgenerated/models/Admin2Enum.ts
#	src/frontend/src/restgenerated/models/Admin3Enum.ts
#	src/frontend/src/restgenerated/models/Admin4Enum.ts
Tables in RDI and merge action erase action
* remove payment migration 0024 that was a result of bug on dev

* add list view for users, filter by business_area in kwagrs, apply custom serializer for program users

* move users inside business_area nested router

* improve general caching in BusinessAreaAndProgramLastUpdatedKeyBit

* general caching improvements

* caching for users

* user serializer, related serializers

* user filters

* tests for user profile

* test user list

* test users filters

* format

* remove graphql test for users

* override _get_queryset in ind and hh cache to save queries

* add id in response
…EST (#4755)

* rollback all the logic for encoded ids, replace ids with not encoded

* more changes to IDs

* even more changes in tests with IDs

* change in filter to exlude by id

* change get_pdu_fields to save prefetched queries

* more changes to test_business_area

* more changes in tests for IDs - areas, TP, program

* more changes to household, individual tests with IDs

* changes to tests for PDU fields

* more changes
* business area views

* caching

* tests - list, caching, detail

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

Successfully merging this pull request may close these issues.

5 participants