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

Add additional Contention Classification database table columns #2187

Merged
merged 22 commits into from
Dec 11, 2023

Conversation

chengjie8
Copy link
Contributor

@chengjie8 chengjie8 commented Nov 6, 2023

What was the problem?

We need to store additional data that were not being captured before.

Associated tickets or Slack threads:

How does this fix it?1

  • added migration script to add new columns that are defined in Store additional contention event fields #2085
  • added a new Util class and its method to populate BieMessagePayload object using java reflection
  • added unit test for the util class

How to test this PR

  • run local integration and unit test on svc-bie-kafka service

Footnotes

  1. Pull-Requests guidelines. If PR is significant, update Current Software State wiki page.

@chengjie8 chengjie8 self-assigned this Nov 6, 2023
Copy link
Contributor

github-actions bot commented Nov 6, 2023

Test Results

0 tests   - 143   0 ✔️  - 143   0s ⏱️ -45s
0 suites  -   38   0 💤 ±    0 
0 files    -   38   0 ±    0 

Results for commit 880a063. ± Comparison against base commit b0a9a31.

♻️ This comment has been updated with latest results.

@chengjie8 chengjie8 marked this pull request as ready for review November 29, 2023 17:44
@chengjie8 chengjie8 requested a review from a team as a code owner November 29, 2023 17:44
contentionEventEntity.setDateCompleted(convertTime(bieMessagePayload.getDateCompleted()));
contentionEventEntity.setDateUpdated(convertTime(bieMessagePayload.getDateUpdated()));
contentionEventEntity.setActorStation(bieMessagePayload.getActorStation());
contentionEventEntity.setAutomationIndicator(bieMessagePayload.getAutomationIndicator());
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we not chain these set statements? that is

contentionEventEntity.setOccurredAt(...) .setDateAdded(...) . . .

Copy link
Contributor

@msnwatson msnwatson left a comment

Choose a reason for hiding this comment

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

LGTM w/ passing linter and one q

Copy link
Contributor

@tejans24 tejans24 left a comment

Choose a reason for hiding this comment

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

LGTM!

@chengjie8 chengjie8 merged commit f851dbd into develop Dec 11, 2023
1 check passed
@chengjie8 chengjie8 deleted the chengjie8/issue-2085 branch December 11, 2023 18:00
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