-
Notifications
You must be signed in to change notification settings - Fork 4
Atomic metadata operations, Task listing by container, route plan fixes #32
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
base: main
Are you sure you want to change the base?
Conversation
|
This pull request introduces several new methods across multiple service files:
These changes affect application logic and should be accompanied by unit tests to verify:
Please add corresponding unit tests to cover these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed everything up to d6d744d in 2 minutes and 26 seconds. Click for details.
- Reviewed
319lines of code in7files - Skipped
0files when reviewing. - Skipped posting
4draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. service/routePlan/client.go:90
- Draft comment:
List() now returns a slice of RoutePlan instead of a paginated struct. Please confirm this aligns with the API design and that pagination (e.g. handling of 'lastId') is no longer needed. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%<= threshold50%This comment is asking the PR author to confirm their intention regarding a change in the API design, specifically about pagination. This violates the rule against asking the author to confirm their intention or to ensure behavior is intended.
2. service/routePlan/client.go:59
- Draft comment:
AddTasks() now appends "tasks" to the URL path—verify that this change correctly reflects the intended API endpoint. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. task.go:271
- Draft comment:
TaskListQueryParams has been updated: 'Dependencies' changed from []string to string, and new fields 'State' and 'Containers' were added. Confirm these changes match API expectations and client usage. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
4. service/admin/client.go:105
- Draft comment:
MetadataSet and MetadataPop methods are added across multiple client files with similar implementations. Consider refactoring common metadata operations into a shared helper to reduce code duplication. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% The comment is about cross-file duplication, suggesting that similar metadata operations exist in multiple client files. However, the rules explicitly state "Ignore cross-file issues. Only think about the file you are reviewing." This is a cross-file refactoring suggestion that would require looking at other files to validate and implement. Within this single file, the two methods (MetadataSet and MetadataPop) are different enough (one uses "$set" with metadata, the other uses "$pop" with names) that extracting a helper might not provide significant value. The comment violates the rule about cross-file issues. While code duplication is generally a valid concern, I might be too quick to dismiss this. If the pattern is truly repeated across multiple files, it could be a legitimate architectural issue worth addressing. However, without seeing the other files, I cannot verify the claim. The rules are explicit: "Ignore cross-file issues. Only think about the file you are reviewing." Even if this is a legitimate concern, it requires context from other files that aren't in the diff. The reviewer cannot make an informed decision about whether this refactoring is worthwhile without seeing those other files, and the comment doesn't provide enough specific guidance to be actionable. This comment should be deleted because it addresses a cross-file issue, which violates the explicit rule to only comment on the file being reviewed. The suggestion requires examining other client files to validate and implement, making it not actionable based solely on this diff.
Workflow ID: wflow_3Uf9yi3RXW9nBi4q
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
…ts a full metadata object or just 'name' so I am just passing a list of names.
…orrect url in testing and fixed route plan list test.
… task filtering by container and state
|
This PR adds several new functions (
This ensures the new logic works correctly and continues to work as expected in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed everything up to 5c5f722 in 55 seconds. Click for details.
- Reviewed
1620lines of code in14files - Skipped
0files when reviewing. - Skipped posting
3draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. task.go:138
- Draft comment:
Consider documenting the use of the 'any' type in TaskParams (for Destination and Recipients). Using 'any' here reduces type‐safety. Clarify valid types (e.g. string ID vs. full object) to improve maintainability. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. task.go:39
- Draft comment:
Check consistency of JSON tag naming for tracking fields. 'TrackingUrl' is tagged as 'trackingURL' while 'TrackingViewed' uses lowercase. Ensure these match the API spec and use consistent naming conventions. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. task.go:271
- Draft comment:
Consider adding comments or more explicit type definitions for fields with complex behavior (e.g., TaskBatchCreateResponseAsync, TaskBatchStatusResponseAsync). This helps future developers understand the expected API behavior. - Reason this comment was not posted:
Confidence changes required:50%<= threshold50%None
Workflow ID: wflow_wW5VuTL99kdNv1Ch
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Important
Add atomic metadata operations, enhance task listing by container, and fix route plan functionalities across multiple services.
MetadataSetandMetadataPopfunctions toclient.goinservice/admin,service/destination,service/recipient,service/task, andservice/workerfor atomic metadata operations.MetadataSetandMetadataPopinclient_test.goforadmin,destination,recipient,task, andworker.Listfunction inservice/task/client.goto support filtering bystateandcontainers.TaskListQueryParamsintask.goto includestateandcontainersfields.stateandcontainersinservice/task/client_test.go.RoutePlansPaginatedstruct fromroutePlan.go.Listfunction inservice/routePlan/client.goto return a slice ofRoutePlaninstead ofRoutePlansPaginated.service/routePlan/client_test.goto reflect changes inListfunction.This description was created by
for 5c5f722. You can customize this summary. It will automatically update as commits are pushed.