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

Bug 466. Rules without a subscription cannot be listed. Listing rules for an invalid DID causes infinite loading #469

Merged
merged 9 commits into from
Nov 26, 2024

Conversation

MytsV
Copy link
Contributor

@MytsV MytsV commented Aug 29, 2024

Fix #466

Cover this behavior with tests.

Comment on lines 112 to 115
const data = this.transformResponseModel(responseModel, dto)
const status = data.status
if (status === 'success') {
return data as TResponseModel
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are the changes that allow the subscriptions to be optional. Basically, the transformResponseModel function is now responsible for determining whether the postprocessing pipeline element output is optional.

}
}

class OptionalResponsePipelineElement extends BaseStreamingPostProcessingPipelineElement<
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The test had to be changed to feature different types of pipeline elements, as now they themselves determine error handling

@MytsV
Copy link
Contributor Author

MytsV commented Aug 29, 2024

TODO: determine if there are any pipeline usecases that need to discard errors

@MytsV
Copy link
Contributor Author

MytsV commented Aug 29, 2024

Should the API tests be refactored? Like with utils and fixtures decomposed

@MytsV
Copy link
Contributor Author

MytsV commented Sep 4, 2024

Critical/error to handle this
Documentation

@MytsV MytsV force-pushed the bug-466-rules_without_subscription branch from 7eb1203 to db6ea02 Compare November 14, 2024 08:49
@maany
Copy link
Member

maany commented Nov 18, 2024

@MytsV looks good to go! Could you refactor the pipeline element :)

@MytsV MytsV force-pushed the bug-466-rules_without_subscription branch from db6ea02 to 3534296 Compare November 19, 2024 12:09
@maany maany merged commit 9c1513f into rucio:master Nov 26, 2024
8 checks passed
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.

Rules without a subscription fail to load through list-did-rules feature
2 participants