Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update addEngagementByBlock method to store reliableByBlock attribute for block-scoped assessments #83

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

lucasxsong
Copy link
Collaborator

@lucasxsong lucasxsong commented Jan 29, 2024

The updateEngagementFlagsByBlock method is similar to the updateEngagementFlags previously declared, but adds on functionality to update the reliableByBlock attribute under runs. This attribute is a dictionary that allows for indication of reliability by block.

@lucasxsong lucasxsong requested a review from richford January 29, 2024 23:57
Copy link
Contributor

@richford richford left a comment

Choose a reason for hiding this comment

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

I like adding the reliableByBlock param, but could this just be added to the existing addEngagementFlags method, by supplying reliableByBlock as an optional parameter and only updating it in firestore if it is non-empty? Are there any drawbacks to that that I'm not seeing?

@lucasxsong lucasxsong force-pushed the enh/add-reliable-by-block branch from 348a8f2 to 0e7675f Compare January 30, 2024 18:05
@lucasxsong
Copy link
Collaborator Author

I like adding the reliableByBlock param, but could this just be added to the existing addEngagementFlags method, by supplying reliableByBlock as an optional parameter and only updating it in firestore if it is non-empty? Are there any drawbacks to that that I'm not seeing?

That's a good point. I've updated the addEngagementFlag method to instead take in the reliableByBlock as an optional parameter to reduce duplication of code.

@lucasxsong lucasxsong changed the title add updateEngagementByBlock method for block-scoped assessments updated addEngagementByBlock method to store reliableByBlock attribute for block-scoped assessments Jan 30, 2024
@lucasxsong lucasxsong changed the title updated addEngagementByBlock method to store reliableByBlock attribute for block-scoped assessments update addEngagementByBlock method to store reliableByBlock attribute for block-scoped assessments Jan 30, 2024
@richford richford merged commit 450774a into main Jan 30, 2024
4 checks passed
@richford richford deleted the enh/add-reliable-by-block branch January 30, 2024 18:16
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