Skip to content

Conversation

@labkey-jeckels
Copy link
Contributor

@labkey-jeckels labkey-jeckels commented Oct 30, 2025

Rationale

The exp.Object BIGINT conversion looks like it accidentally migrated this use from Integer to Long though the flow.Object table is still using ints.

https://teamcity.labkey.org/buildConfiguration/LabkeyTrunk_DailyCPostgres/3717647?buildTab=tests&status=failed&name=FlowSpecimenTest

Changes

  • Use to Long more consistently
  • Code cleanup, including deleting unused methods and variables

for (Number count : counts.values())
totalCount += count.longValue();
Map<Integer, Number> counts = FlowManager.get().getUsageCount(primary._type, primary._rowId);
Copy link
Contributor

Choose a reason for hiding this comment

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

I probably would have just change this to counts.get(primary._rowId.longValue())

It really doesn't matter either way here, but the idea was start using Map<Long,?> everywhere was to just future proof for any future migrations. Also just the general idea of "Long is the Integer".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I switched back to long. There's a bunch of other code here using ints for these values that I didn't try to address.

@labkey-jeckels labkey-jeckels merged commit 16ef3a4 into develop Oct 31, 2025
7 checks passed
@labkey-jeckels labkey-jeckels deleted the fb_flowIntVsLong branch October 31, 2025 01:26
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