Skip to content

Enrich logo of entities from system owned subprocessors#2377

Open
adelowo wants to merge 4 commits into
mainfrom
enhance-ISS-2089
Open

Enrich logo of entities from system owned subprocessors#2377
adelowo wants to merge 4 commits into
mainfrom
enhance-ISS-2089

Conversation

@adelowo
Copy link
Copy Markdown
Member

@adelowo adelowo commented May 7, 2026

No description provided.

@adelowo adelowo force-pushed the enhance-ISS-2089 branch from 21cd505 to 7b8511b Compare May 8, 2026 00:56
@adelowo adelowo enabled auto-merge (squash) May 8, 2026 00:57
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
2.8% Coverage on New Code (required ≥ 20%)
69.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

defaultPredicates = append(defaultPredicates, subprocessor.NameEqualFold(name))
}

processors, err := m.Client().Subprocessor.Query().
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.

you'd presumably need to do a privacy bypass here?

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.

They are system-owned subprocessor, not privacy bypass needed, user would have access to these. They work the same way with trust-center subprocessors being able to be created based on these

Comment on lines +172 to +175
if description, ok := m.Description(); !ok || strings.TrimSpace(description) == "" {
if strings.TrimSpace(processors.Description) != "" {
m.SetDescription(processors.Description)
}
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.

why would we ever want to trim spaces on a description?

var names []string

fn := func(name string) {
name = strings.TrimSpace(name)
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.

should not be trimming spaces on a name that could be 2 words

assert.NilError(t, err)
assert.Assert(t, resp != nil)

assert.Check(t, is.Equal(description, *resp.CreateEntity.Entity.Description))
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.

confused how this test would pass given the description definition above has spaces in it and the hook would have trimmed them out in the created entity

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