Skip to content

add disabled field to services and service links #494

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

Merged
merged 3 commits into from
Jul 1, 2025

Conversation

Ian-Nara
Copy link
Contributor

No description provided.

@@ -73,6 +86,7 @@ public String toString() {
", name='" + name + '\'' +
", roles=" + roles +
", linkIdRegex=" + linkIdRegex +
", disabled=" + disabled +
Copy link
Contributor

Choose a reason for hiding this comment

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

didn't we decide to use lombok at some point?

ServiceLink l3 = addServiceLink(content, "ghi789", 1, 123, "Test Service 1", Set.of(Role.MAPPER, Role.SHARER));
ServiceLink l4 = addServiceLink(content, "jkl1011", 3, 124, "test2", null);
ServiceLink l1 = addServiceLink(content, "abc123", 1, 123, "Test Service 1", Set.of(), false);
ServiceLink l2 = addServiceLink(content, "abc123", 2, 123, "test1", Set.of(Role.MAPPER), true);
Copy link
Contributor

Choose a reason for hiding this comment

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

we are introducing a mix of enabled/disabled in the test but what tests or assertions are we doing with these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

containsAll will use .equals()

Copy link
Contributor

@jon8787 jon8787 Jun 30, 2025

Choose a reason for hiding this comment

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

Just curious, will there be tests be that assert that disabling a service link or service actually does disable it? Where would these go?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Operator, as this is where we will check if it's disabled

@Ian-Nara Ian-Nara merged commit 52d6372 into main Jul 1, 2025
3 checks passed
@Ian-Nara Ian-Nara deleted the ian-UID2-2084-add-disable-service-service-link branch July 1, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants