Skip to content

feat(orgs): read organizations from DEMI - #959

Merged
danieltruong merged 4 commits into
developfrom
feat-demi-orgs
Oct 14, 2026
Merged

danieltruong merged 4 commits into
developfrom
feat-demi-orgs

Conversation

@danieltruong

Copy link
Copy Markdown
Collaborator

The organizations list, the add/edit organization form and the link-organization picker now read from DEMI /organizations instead of the eagle-api search and item endpoints.

  • OrgService has native listOrganizations, getOrganization and orgSort methods. DEMI sorts organizations only by name, so the Organization Type and Company Legal columns are no longer sortable.
  • Checked organization types are sent as companyType values.
  • Saves still go to eagle-api. A small mapper turns a DEMI row into the Eagle body; a body that already has _id is sent unchanged.
  • getByCompanyType stays for its other callers until they move.

Selecting more than one organization type needs DEMI to accept a repeated companyType; that change is in a separate DEMI PR.

Parity on test (anonymous organization list): 734 matched, 0 missing, 0 extra, 0 field differences.

- The organization list, the link-organization picker and the edit
  form read DEMI /organizations instead of the eagle-api search
  endpoint.
- DEMI sorts organizations on name only, so the Organization Type and
  Company Legal columns are no longer sortable.
- Writes still go to eagle-api. A native row passed to save or add is
  converted to Eagle field names first.
- getByCompanyType stays for its callers outside the organization
  screens.
A parent organization DEMI cannot return no longer shows an error
toast on a form that loads fine. The form keeps the parent link and
shows its id as the name. Only a failed read of the organization
being edited shows an error.
The add/edit form sends native-shaped input and OrgService converts
it to the eagle-api body, so the native-to-Eagle mapper is the one
path for organization writes. A new row with no id maps to an Eagle
body with a null _id, as before.
@danieltruong
danieltruong merged commit 755aa26 into develop Oct 14, 2026
4 checks passed
@danieltruong
danieltruong deleted the feat-demi-orgs branch October 14, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant