Fix department name in department history response#107
Open
lahiruudayakumara wants to merge 2 commits into
Open
Fix department name in department history response#107lahiruudayakumara wants to merge 2 commits into
lahiruudayakumara wants to merge 2 commits into
Conversation
Add department_name to the department history timeline response and keep renamed departments separate during timeline collapsing. Update the API contract and service tests for the response change, and adjust async error-path tests to avoid unawaited coroutine warnings while running the suite. Fixes LDFLK#106
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds department_name to the organization API contract and updates the department_history_timeline service to include department names and source IDs in the response. The logic for collapsing timeline entries was updated to account for these new fields, and several tests were adjusted to verify the changes. Review feedback suggests completing the API examples in the contract and using pre-formatted period strings in the service implementation to ensure consistency and simplify consumer usage.
Contributor
|
hi @lahiruudayakumara |
Keep internal gap records structurally consistent by setting minister_name for placeholder entries and clarify why the timeline uses raw timestamps until the final response formatting step. Validated with the full test suite. Refs LDFLK#106
Author
lahiruudayakumara
left a comment
There was a problem hiding this comment.
fix: add minister_name field to gap timeline entries for consistent response structure
Refs #106
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
department_nameto the department history timeline responseFixes #106