8000 fix(luminork): Update create_component to not rely only on module cache by stack72 · Pull Request #6138 · systeminit/si · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(luminork): Update create_component to not rely only on module cache #6138

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 you 10000 r account

Merged
merged 1 commit into from
May 16, 2025

Conversation

stack72
Copy link
Contributor
@stack72 stack72 commented May 16, 2025

This will use locally installed Schemas not just schemas in the Module Cache and it will create a view if it doesn’t exist already:

curl -X 'POST' \
  'http://localhost:5380/v1/w/01HPJ3K7RC486W9RPR3T0B6HS2/change-sets/01JVD2HT6P5QFK2A4MNZRZX72Q/components' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer ….' \
  -d '{
  "name": "Test",
  "schemaName": "TestSchema",
  "viewName": "MyView"
}'
{
  "component": {
    "id": "01JVD2XBH7V569SGB93FRJZYJ9",
    "schemaId": "01JVD2J26CV2YQ6RVF0TM40D3J",
    "schemaVariantId": "01JVD2J26CMMGAT1CJM89N31KW",
    "sockets": [],
    "domainProps": [],
    "resourceProps": [],
    "name": "Test",
    "resourceId": "",
    "toDelete": false,
    "canBeUpgraded": false,
    "connections": [],
    "views": [
      {
        "id": "01JVD2XBH6S782W6AZ2YE4GNWC",
        "name": "MyView",
        "isDefault": false
      }
    ]
  }
}

where TestSchema was something I hit from our UI and MyView didn’t already exist

Copy link

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

Scanned Files

None

@stack72 stack72 requested a review from britmyerss May 16, 2025 17:44
@stack72 stack72 added this pull request to the merge queue May 16, 2025
Merged via the queue into main with commit 163e966 May 16, 2025
10 checks passed
@stack72 stack72 deleted the luminork-change-create-component branch May 16, 2025 18:07
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.

3 participants
0