Repository navigation
Conversation
Open
1 task done
…etwork-adapter#57] Adds the Grievance step and support route, the PMFBY registry seed with its two actions, and a mock that copies the PMFBY demo portal.
nisargabd
force-pushed
the
feat/57-pmfby-mock-and-registry-seed
branch
from
October 12, 2026 11:00
b04e9e3 to
7efce84
Compare
This was referenced Oct 12, 2026
…penAgriNet/network-adapter#57] The Grievance pack lives under api-schemas/ on api-schema-packs-v0.1, not schema/ on main, so the registry pattern now accepts that folder and a dotted ref.
…t/network-adapter#57] The other capabilities' mappings are served from this folder; PMFBY's now sit beside them.
…t/network-adapter#57] The plugin reads the token lifetime from the login reply, so a fixed tokenTtl is no longer needed.
…penAgriNet/network-adapter#57] The status mapping only reads an RFC 3339 InsertDateTime, so the mock's reads had no filedOn. The seed ticket is now the demo's current one.
…penAgriNet/network-adapter#57] A status read now needs the ticket's own number and phone, so a wrong ticket gets no record. mock-pmfby is built from source and started by make up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Sets up quick-start to run the PMFBY grievance plugin (OpenAgriNet/network-adapter#70), and adds a mock of the PMFBY portal.
setup.py): adds the PMFBY participant, its binding with two actions (support,status), and theopenagrinet:Grievanceschema row.supportis never retried, so a retry cannot file a duplicate grievance.api-schemas/onapi-schema-packs-v0.1, sosetup.pyandSchemaRegistry.json(quick-start and chart) now accept that path.grievance.support.yamlandgrievance.status.yamladded underconfig/mappings/pmfby/, next to the other capabilities' mappings.NICUsersLoginand keeping the token until the login reply'svalidTo.supportto the provider adapter..env.exampleanddocker-compose.yml: the PMFBY values, the login passed to the provider adapter, and amock-pmfbyservice.make upbuilds and starts it.mock-server/mockpmfby): answers like the demo portal (same replies and refusal messages, one ticket per application). A status read needs the ticket's own number and phone; otherwise it answers "No record found".Why
The grievance plugin needs the registry to hold PMFBY's binding and schema, the adapters to route and serve the call, and its mappings published where the registry points. The mock lets the flow run without PMFBY credentials.
Testing
Ran the Postman collection (publish, discover, support, status) through the adapters against the mock: 42 requests, 129 assertions, all pass. Also checked a fresh lodge, a repeat lodge, and status with a wrong ticket or phone (400). The Grievance schema URL built by
setup.pypasses the registry's pattern and resolves.setup.pyitself was not run, since registry writes are permanent.Merge order
Merge OpenAgriNet/network-adapter#70 first: the provider adapter needs its Grievance plugin.
Part of OpenAgriNet/network-adapter#57