Skip to content

Allow selecting tag for execution & display version tags#14883

Merged
mergify[bot] merged 5 commits intodevelopfrom
wip/vitvakatu/execution-tags
Mar 18, 2026
Merged

Allow selecting tag for execution & display version tags#14883
mergify[bot] merged 5 commits intodevelopfrom
wip/vitvakatu/execution-tags

Conversation

@vitvakatu
Copy link
Contributor

Pull Request Description

Closes https://github.com/enso-org/cloud-v2/issues/2329
Closes https://github.com/enso-org/cloud-v2/issues/2326

CleanShot.2026-03-17.at.17.27.15.mp4

Additional fixes:

  • warning “DialogStackProvider: sliceFromStack: currentId does not match the last item in the stack”
  • warning about failed form validation when submitting scheduled execution

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.
  • If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
    or the Snowflake database integration, a run of the Extra Tests has been scheduled.
    • If applicable, it is suggested to paste a link to a successful run of the Extra Tests.

- matching item is removed from any position instead of popping the last
  item at all times
- update both stack and dialogsStack on cleanup
Comment on lines +51 to +54
const reversedIndex = [...state.stack]
.reverse()
.findIndex((item) => item.id === currentId)
const index = reversedIndex === -1 ? -1 : state.stack.length - reversedIndex - 1
Copy link
Contributor

Choose a reason for hiding this comment

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

findLastIndex?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, yeah it would be better.

type StartDateValue = CalendarDate | CalendarDateTime | ZonedDateTime

/** Return whether a value looks like an internationalized date object. */
function isDateValueLike(value: unknown): value is StartDateValue {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see what this function is doing that couldn't be done with a z.object schema?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Weird, it turns out z.instanceof(ZonedDateTime).or(z.null()).optional() blows up while z.instanceof(ZonedDateTime).nullable().optional() works perfectly fine. Zod bug? I removed this excessive validation as it is unnecessary. z.object() on its own won't help as it requires ugly type conversion to StartDateValue type anyway, which this function kinda hides thanks to TS typesystem? Anyway, not relevant now.

@vitvakatu vitvakatu requested a review from kazcw March 18, 2026 10:52
@vitvakatu vitvakatu added the CI: Ready to merge This PR is eligible for automatic merge label Mar 18, 2026
@mergify mergify bot merged commit bb77f57 into develop Mar 18, 2026
75 of 79 checks passed
@mergify mergify bot deleted the wip/vitvakatu/execution-tags branch March 18, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

-gui CI: Ready to merge This PR is eligible for automatic merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants