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

fixes LUNA-218 add path to tauri project metadata #377

Merged
merged 5 commits into from
Mar 25, 2024

Conversation

ShravanSunder
Copy link
Contributor

@ShravanSunder ShravanSunder commented Mar 22, 2024

What was done

This PR adds path to project metadata as optional variable. It only loads path in tauri v4 loader.

Purpose

This will allow us to use the path to automatically output files via the File Node. For example a usecase would be to automatically export datasets into csv files in the same project folder.

Should be a non breaking change to browser loaders and any other project loaders

https://discord.com/channels/1149376303070466110/1149382713904746597/1216788570677837834

@@ -12,6 +12,7 @@ export type Project = {
title: string;
description: string;
mainGraphId?: GraphId;
path?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is going to serialize the path of the project in the project itself, which I'd like to avoid :/

Can you change the project metadata serialization to ignore this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pushed a change!

@ShravanSunder
Copy link
Contributor Author

ShravanSunder commented Mar 24, 2024

@abrenneke don't merge this, has issues! i lost work! 😢

@ShravanSunder ShravanSunder marked this pull request as draft March 24, 2024 19:05
@ShravanSunder ShravanSunder marked this pull request as ready for review March 24, 2024 19:16
@ShravanSunder
Copy link
Contributor Author

ShravanSunder commented Mar 24, 2024

@abrenneke Fixed a fatal error.
Added error toast as well when saves don't work to make sure there's no data loss in future

Copy link
Collaborator

@abrenneke abrenneke left a comment

Choose a reason for hiding this comment

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

LGTM

@abrenneke abrenneke merged commit cdfa7ee into Ironclad:main Mar 25, 2024
1 check passed
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