Skip to content

Add MillingStep table#323

Merged
gfrn merged 1 commit intomainfrom
milling-step
May 8, 2026
Merged

Add MillingStep table#323
gfrn merged 1 commit intomainfrom
milling-step

Conversation

@gfrn
Copy link
Copy Markdown
Contributor

@gfrn gfrn commented May 8, 2026

No description provided.

millingStepId int(11) unsigned PRIMARY KEY AUTO_INCREMENT,
millingStepNameId int(11) unsigned,
isEnabled tinyint(1) DEFAULT 0 COMMENT "This marks whether the milling step is enabled and queued up; when the FIB starts this step, it will be set to False",
status enum("Finished", "Failed", "Aborted") COMMENT "Describes the status of the milling step",
Copy link
Copy Markdown

@tieneupin tieneupin May 8, 2026

Choose a reason for hiding this comment

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

"None" also appears in the metadata as a possible string literal. Would you rather we insert null instead of "None" in that instance?

Also, correct me if I'm wrong, but if status was previously populated with a string, we can set it to null again, right?

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.

Oh yes, I though that when you mentioned "None", it was functionally equivalent to "null", but if there is some distinction, I can readd it

Status should only accept enums, so since the table doesn't exist yet, it'll only accept enums

Also, I remember there was one column in GridSquare that you may want to add, is that still the case?

Copy link
Copy Markdown

@tieneupin tieneupin May 8, 2026

Choose a reason for hiding this comment

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

there was one column in GridSquare that you may want to add

Looking back on our previous chats, I think we no longer need that for this batch of changes.

Status should only accept enums

Ah, I see. Unselected steps will have "None" as their activity status, and there might be an off chance that something will go from one of the known options back to "None". The status column would thus need to support the insertion of null, "None", or "", whichever one is easier from an SQL perspective.

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.

All of them are equally easy, it remains nullable, so you'll be able to set it to "null" and enums, but not strings

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

OK, thanks for clarifying! We can go with the null option, then.

Copy link
Copy Markdown

@tieneupin tieneupin left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for doing this!

@gfrn gfrn merged commit ac38bd2 into main May 8, 2026
3 checks passed
@gfrn gfrn deleted the milling-step branch May 11, 2026 08:47
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