Skip to content

added filter for sm repo#209

Merged
aaronzi merged 26 commits into
eclipse-basyx:mainfrom
Martin187187:smrepo-filter-ql
Jun 2, 2026
Merged

added filter for sm repo#209
aaronzi merged 26 commits into
eclipse-basyx:mainfrom
Martin187187:smrepo-filter-ql

Conversation

@Martin187187

Copy link
Copy Markdown
Contributor

closes #208

@Martin187187 Martin187187 marked this pull request as ready for review June 1, 2026 12:44
@aaronzi aaronzi requested a review from Copilot June 1, 2026 14:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 113 out of 114 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • internal/submodelrepository/api/api_submodel_repository_api_service.go: Language not supported

Comment thread internal/common/security/authorize.go
Comment thread internal/common/model/grammar/fragment_string_pattern.go

@FriedJannik FriedJannik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this nice addition :)

Comment thread internal/submodelrepository/benchmark/post_submodel.py
Comment thread internal/submodelrepository/benchmark/post_submodel.py
Comment thread internal/common/model/grammar/fragment_string_pattern.go
Comment thread internal/common/model/grammar/fieldidentifier_processing.go
Comment thread internal/common/model/grammar/logical_expression_to_sql.go
if b.Index.stringValue != nil {
if b.Alias == "submodel_element.idshort_path" && strings.HasSuffix(*b.Index.stringValue, "[]") {
prefix := strings.TrimSuffix(*b.Index.stringValue, "[]")
where = append(where, goqu.I(b.Alias).Like(goqu.L("? || '[%'", prefix)))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this [%to broad because it only queries in the list or is this intentional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a extrem edge case. here an example:
if you use $sme.a[]#value you want the values of the items of a and not the value of a.

@aaronzi aaronzi added the docker-snapshot PRs closed with this label build and push docker snapshot images label Jun 2, 2026
@aaronzi aaronzi merged commit d9c0e2c into eclipse-basyx:main Jun 2, 2026
68 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker-snapshot PRs closed with this label build and push docker snapshot images

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SM Repository Filter

4 participants