Skip to content
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

Option to preconfigure custom IRI for AAS/SM/Asset ID via Env Vars #208

Closed
2 tasks
aaronzi opened this issue Jan 6, 2025 · 0 comments · Fixed by #222
Closed
2 tasks

Option to preconfigure custom IRI for AAS/SM/Asset ID via Env Vars #208

aaronzi opened this issue Jan 6, 2025 · 0 comments · Fixed by #222
Assignees
Labels
VWS4LS Tickets related to VWS4LS Project

Comments

@aaronzi
Copy link
Member

aaronzi commented Jan 6, 2025

User Story

As a BaSyx user,
I want to preconfigure the first part of the AAS/SM/Asset ID,
so that it reflects the URL of my own company/organisation.


Rules

  • A new Env variable called EDITOR_ID_PREFIX should be used to configure the first part of the ID IRI
  • If the Env Variable is not set https://example.com should be used automatically

Entry Points

  • Only relevant for the AAS Editor [1]
  • Will be used in the IDUtils [2]
  • Env variable needs to be considered in those files: [3][4][5]

Acceptance Criteria

  • When clicking on Generate IRI, the created IRI uses the specified URL prefix from the Env Variable if configured
  • When the Env Variable is not set https://example.com will be used when clicking on Generate IRI

References and Notes

[1] https://github.com/eclipse-basyx/basyx-aas-web-ui/blob/main/aas-web-ui/src/components/EditorComponents/InputTypes/TextInput.vue
[2] https://github.com/eclipse-basyx/basyx-aas-web-ui/blob/main/aas-web-ui/src/utils/IDUtils.ts#L25-L27
[3] https://github.com/eclipse-basyx/basyx-aas-web-ui/blob/main/aas-web-ui/entrypoint.sh
[4] https://github.com/eclipse-basyx/basyx-aas-web-ui/blob/main/aas-web-ui/.env.development
[5] https://github.com/eclipse-basyx/basyx-aas-web-ui/blob/main/aas-web-ui/src/store/EnvironmentStore.ts

@aaronzi aaronzi converted this from a draft issue Jan 6, 2025
@aaronzi aaronzi added the VWS4LS Tickets related to VWS4LS Project label Jan 6, 2025
@aaronzi aaronzi changed the title Option to preconfigure custom IRI for AAS/SM/Asset ID vie Env Vars Option to preconfigure custom IRI for AAS/SM/Asset ID via Env Vars Jan 6, 2025
@seicke seicke self-assigned this Jan 8, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in BaSyx for VWS4LS Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VWS4LS Tickets related to VWS4LS Project
Projects
Status: Done
2 participants