Skip to content

Conversation

@josephjclark
Copy link
Collaborator

@josephjclark josephjclark commented Feb 5, 2026

Description

This PR ports the legacy metadata service into the new collaborative editor

(no issue but it came out of #4386 )

Background

Metadata in this context refers to database/entity metadata pulled from the target backend service. So if you're editing a Salesforce step, the metadata is all the sObjects in the Salesforce instance the credential points to. If you're editing DHIS2, it's all the entities and attributes and stuff defined in the DHIS2 instance your credential points to.

Metadata was a bit of an experiment we did back in the day that never quite took off. We only support metadata for dhis2 and salesforce.

Metadata shows up in two places:

  • The Metadata tab provides a nice list of all the metadata entities available. Users might want to refer to these things while writing job code
  • In the code editor, we provide code assist based on metadata. We do this very very selectively and it's very very cool. See validation steps for more details.

Validation steps

  1. Create a DHIS2 step
  2. Create a credential with url https://play.im.dhis2.org/stable-2-42-3-1 user admin and password district
  3. The Metadata tab should be populated with entities from the DHIS2 backend
  4. Start typing create() (you should get code assist but maybe try ctrl + space)
  5. You should get code assist for the first argument (a string ,try tracked-entity)
  6. You should get code assist for the second argument. Start typing to the code below - you should get magic code assist on the attribute value)
create('tracked-entities', {
  attributes: [{
    attribute: 
  }]
})
image

AI Usage

Please disclose whether you've used AI anywhere in this PR (it's cool, we just
want to know!):

  • I have used Claude Code
  • I have used another model
  • I have not used AI

You can read more details in our
Responsible AI Policy

cli call looks OK but the app isn't loading data
@github-project-automation github-project-automation bot moved this to New Issues in v2 Feb 5, 2026
@josephjclark josephjclark marked this pull request as draft February 5, 2026 17:41
@josephjclark josephjclark changed the base branch from main to make-intellisense-great-again February 5, 2026 17:42
@josephjclark josephjclark marked this pull request as ready for review February 6, 2026 14:19
@elias-ba elias-ba force-pushed the make-intellisense-great-again branch from bb7738a to b6c0684 Compare February 9, 2026 01:06
@theroinaochieng theroinaochieng moved this from New Issues to In review in v2 Feb 9, 2026
@josephjclark
Copy link
Collaborator Author

I'll need to rebase this on make-intellisense-great-again before review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

1 participant