Skip to content

chore: new no-loops branch - #2543

Closed
Christopher-Chianelli wants to merge 4 commits into
TimefoldAI:mainfrom
Christopher-Chianelli:chore/update-no-loops-branch
Closed

chore: new no-loops branch#2543
Christopher-Chianelli wants to merge 4 commits into
TimefoldAI:mainfrom
Christopher-Chianelli:chore/update-no-loops-branch

Conversation

@Christopher-Chianelli

Copy link
Copy Markdown
Contributor

The no-loops branch has a ton of conflicts with main; to have a meaniful diff, the PR is based on main (although it will replace no-loops via a force push). If approved, it will replace the existing no-loops branch which cannot be cleanly merged currently.

return declarativeShadowVariableDescriptorList;
}

public boolean hasAnyShadowVariablesInconsistentMember() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Arguably we can make this a field that is precomputed as the entity descriptors are being built. (Not sure how often this is called and from where; may be a moot point.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Called once to determine if inconsistent solutions should be ignored. Result is already cached on the score director.

for (var i = 0; i < groupEntityIds.length; i++) {
var groupEntity = groupEntities[i];
var groupEntityId = groupEntityIds[i];
if (!ignoreInconsistentSolutions || !consistencyProcessed) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'd flip the condition and start with the other branch. Easier to read that way, without all that negation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is no other branch though; I can flip it through de morgans though.

@triceo triceo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Went over it all over again; adding some comments, likely for things I did not notice before.

I suggest we start writing docs for this; the docs need to list all the behaviors and it will be easy to forget some, if we try to write the docs at the very end of the process.

@sonarqubecloud

Copy link
Copy Markdown

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