Skip to content

OBPIH-6332 Dashboard indicator for number of backdated shipments (Fix overriding config value)#4629

Merged
awalkowiak merged 2 commits intodevelopfrom
OBPIH-6332-4
May 21, 2024
Merged

OBPIH-6332 Dashboard indicator for number of backdated shipments (Fix overriding config value)#4629
awalkowiak merged 2 commits intodevelopfrom
OBPIH-6332-4

Conversation

@alannadolny
Copy link
Collaborator

No description provided.


Map getBackdatedShipmentsChart(String locationId, Integer monthsLimit, StockMovementDirection direction) {
Map<String, Integer> data = Constants.backdataAxes
Map<String, Integer> data = Constants.backdataAxes.clone()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I missed that one before. I think Constants is not the best place for things that can be changed. I looked into the previous request and it was "I would suggest moving those "2 days" etc. to static constants in Constants.groovy, as this might be reused in the future" - I think it meant only the keys, not entire map (correct me if I am wrong here @kchelstowski).
Either way, I think this map should not be kept as is in the consts.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@awalkowiak yes, I meant the keys. I'm sorry @alannadolny I haven't noticed it in the previous PR.

@alannadolny alannadolny requested a review from awalkowiak May 21, 2024 07:26
@awalkowiak awalkowiak merged commit e914bdf into develop May 21, 2024
@awalkowiak awalkowiak deleted the OBPIH-6332-4 branch May 21, 2024 07:51
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