Skip to content

A new record should not have descendants#7

Open
geralddzx wants to merge 1 commit into
masterfrom
fix_sub_story_count_cache_column_not_up_to_date
Open

A new record should not have descendants#7
geralddzx wants to merge 1 commit into
masterfrom
fix_sub_story_count_cache_column_not_up_to_date

Conversation

@geralddzx
Copy link
Copy Markdown

The current behavior is that a new record will have all stories in the entire database as descendants

  • Rick and Gerald

Fixes https://github.com/mavenlink/mavenlink/pull/7412

The current behavior is that a new record will have all stories in the entire database as descendants

- Rick and Gerald
Copy link
Copy Markdown
Member

@shirish-pampoorickal shirish-pampoorickal left a comment

Choose a reason for hiding this comment

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

Please add a spec to double check the behavior. Suggested changes to the subtree_conditions & sibling_conditions

end

def descendant_conditions
return ["1 = 0"] if new_record?
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't see a spec for this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would suggest updating the logic around for subtree_conditions & sibling_conditions too

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Agreed - I realized we hadn't added a spec last night as I was thinking through this. Thanks for the heads up on the other areas to check!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants