Skip to content

PT-FIXES: DOS-1370 generate deterministic model names to prevent conflicts in chained operations#4553

Merged
Nauna merged 2 commits intodevelopmentfrom
groupby-detemintic-model-naming
Jan 20, 2026
Merged

PT-FIXES: DOS-1370 generate deterministic model names to prevent conflicts in chained operations#4553
Nauna merged 2 commits intodevelopmentfrom
groupby-detemintic-model-naming

Conversation

@abdelaziz-mahdy
Copy link
Collaborator

@abdelaziz-mahdy abdelaziz-mahdy commented Oct 30, 2025

Problem

Saved flows with chained GroupBy operations fail to load after page reload because model names use random numbers (GroupBy9591).

Solution

Generate deterministic names based on source class, property, and sink type.

Before: foam.tmp.GroupBy9591
After: foam.tmp.GroupBy_SourceClass_propertyName_SinkType

Benefits

  • Saved flows reload successfully
  • Chained GroupBy operations work reliably
  • Model names are predictable and traceable

Files Changed

  • foam3/src/foam/mlang/sink/GroupBy.js - Updated genModel() method

Note

Chained GroupBy operations were not functional before this fix. This change enables the feature for the first time.

@abdelaziz-mahdy abdelaziz-mahdy changed the title generate deterministic model names to prevent conflicts in chained operations PT-FIXES: DOS-1370 generate deterministic model names to prevent conflicts in chained operations Oct 30, 2025
@Nauna Nauna merged commit 1e67801 into development Jan 20, 2026
1 check passed
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.

2 participants