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

feat: federated catalog node resolver sample #346

Conversation

farhin23
Copy link
Contributor

What this PR changes/adds

This PR adds a new sample: fc-03-static-node-resolver in the federated-catalog sample module. It includes demonstration of a catalog node resolver that implements the TargetNodeDirectory, and resolves the target nodes to crawl from a static participants file.

Why it does that

To illustrate how we can implement TargetNodeDirectory to resolve the target nodes in a dataspace. And then how this can be used with both standalone and embedded versions of federated catalog.

Further notes

Projects and libraries have been added in settings.gradle.kts.

In system-tests->build.gradle.kts working directory has been set to project directory.

Linked Issue(s)

Contributes to #296

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@farhin23 farhin23 added the enhancement New feature or request label Dec 15, 2024
@ndr-brt ndr-brt self-requested a review December 16, 2024 07:57
@farhin23 farhin23 mentioned this pull request Dec 17, 2024
3 tasks
README.md Outdated Show resolved Hide resolved
federated-catalog/README.md Outdated Show resolved Hide resolved
federated-catalog/fc-03-static-node-directory/README.md Outdated Show resolved Hide resolved
federated-catalog/fc-03-static-node-directory/README.md Outdated Show resolved Hide resolved
federated-catalog/fc-03-static-node-directory/README.md Outdated Show resolved Hide resolved
Comment on lines 21 to 24
tasks.test {
workingDir = rootProject.projectDir
}

Copy link
Member

Choose a reason for hiding this comment

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

why is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have changed the implementation a little bit and as part of that I have removed this code block.


@EndToEndTest
class Policy01BasicTest {

private static final Duration TIMEOUT = Duration.ofSeconds(90);
Copy link
Member

Choose a reason for hiding this comment

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

is this used? looks a bit out of scope

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previously the Policy01BasicTest was using the TIMEOUT defined in TransferUtil which is 30 seconds. As the test was failing pipeline, the TIMEOUT has been defined locally with a increased time duration.

@farhin23 farhin23 requested a review from ndr-brt December 17, 2024 21:31
Copy link
Member

@ndr-brt ndr-brt left a comment

Choose a reason for hiding this comment

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

just a single nit, then we're ready to merge

federated-catalog/fc-00-basic/README.md Outdated Show resolved Hide resolved
@farhin23 farhin23 requested a review from ndr-brt December 18, 2024 14:31
Copy link
Member

@ndr-brt ndr-brt left a comment

Choose a reason for hiding this comment

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

LGTM

@ndr-brt ndr-brt merged commit 042b0e0 into eclipse-edc:main Dec 18, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants