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

Prevent asterism updates for executed observations, add undo/redo #4056

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

toddburnside
Copy link
Contributor

No description provided.

Copy link

bundlemon bot commented Aug 13, 2024

BundleMon

Files updated (1)
Status Path Size Limits
index-(hash).js
1.66MB (+1.47KB +0.09%) -
Unchanged files (7)
Status Path Size Limits
exploreworkers-(hash).js
600.27KB -
index-(hash).css
65.51KB -
workbox-window.prod.es5-(hash).js
2.07KB -
catalogworker-(hash).js
91B -
plotworker-(hash).js
88B -
agsworker-(hash).js
87B -
itcworker-(hash).js
74B -

Total files change +1.47KB +0.06%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@@ -20,4 +20,25 @@ object AsterismQueriesGQL {
}
"""
}

// Group these 2 mutations together so that the targetEdit and observationEdit subscriptions come
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this guaranteed to work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, we reduce the transit time involved, but they still aren't real close together. That timing depends on when the database updates happen for the 2 mutations, I guess. Still seemed better than doing them individually. 🤷‍♂️

@@ -59,6 +59,7 @@ object AsterismEditorTile:
backButton: Option[VdomNode] = none
)(using FetchClient[IO, ObservationDB], Logger[IO]): Tile = {
// Save the time here. this works for the obs and target tabs
// It's OK to save the viz time for executed observations, I think.
val vizTimeView =
vizTime.withOnMod(t => ObsQueries.updateVisualizationTime[IO](obsIds.toList, t).runAsync)
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs an update I think

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, it looks like it is still called ObsQueries.updateVisualizationTime in your PR. 😄 So, I don't think this needs to change. Unless there is another reason.

Copy link
Contributor

Choose a reason for hiding this comment

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

lazy cquiroz

Copy link
Contributor

@cquiroz cquiroz left a comment

Choose a reason for hiding this comment

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

This is quite an undertaking! thanks
LGTM

@toddburnside toddburnside merged commit 7fa4039 into master Aug 14, 2024
14 checks passed
@toddburnside toddburnside deleted the protect-asterism branch August 14, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants