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

feat(mcl/host_info): Upload results to Coda #104

Open
wants to merge 59 commits into
base: main
Choose a base branch
from

Conversation

monyarm
Copy link
Contributor

@monyarm monyarm commented Jun 20, 2024

No description provided.

monyarm and others added 30 commits June 20, 2024 09:50
packages/mcl/src/src/mcl/utils/coda.d Show resolved Hide resolved
Comment on lines +99 to +106
auto docId = "0rz18jyJ1M";
auto hostTableId = "grid-b3MAjem325";
auto cpuTableId = "grid-mCI3x3nEIE";
auto memoryTableId = "grid-o7o2PeB4rz";
auto motherboardTableId = "grid-270PlzmA8K";
auto gpuTableId = "grid-ho6EPztvni";
auto storageTableId = "grid-JvXFbttMNz";
auto osTableId = "grid-ora7n98-ls";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these specifics for the table you edit? Isn't it better to obtain them from some env var?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are specific tables in coda, in a specific document. So the ids need to be hardcoded.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@monyarm I agree about these being doc specific, but they still shouldn't be hard coded. * the docId should be an env / cli parameter.

  • ideally your code will list the tables in the document and locate the table ids by their name
    • if not easily doable, these should also be configurable via env or cli

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I dunno, given that we want people's hardware info to show up in coda after they run host_info, that seems like a bad idea. I mean, do you expect everyone to look up the coda document id, and add it as an env variable?
I can see wether using names instead of ids is supported for tables, it is for columns, but I'm not sure about the rest.

@monyarm monyarm force-pushed the feat/machine_create branch from 00b941d to 8c7b681 Compare June 26, 2024 01:33
@PetarKirov PetarKirov force-pushed the feat/CD branch 3 times, most recently from b5368a3 to fcf842e Compare July 2, 2024 15:50
Base automatically changed from feat/CD to main July 2, 2024 17:45
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.

3 participants