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

[LOCAL]: Flat File Structure #1926

Open
G-Ambatte opened this issue Dec 26, 2021 · 3 comments
Open

[LOCAL]: Flat File Structure #1926

G-Ambatte opened this issue Dec 26, 2021 · 3 comments
Labels
complicated P3 - low priority Obscure tweak or fix for a single user

Comments

@G-Ambatte
Copy link
Collaborator

Rather than saving documents to a MongoDB collection, some users in the past have requested that they would prefer to save to a local text file. Some have suggested placing these files in their own separate Git repository/sub-module to allow for versioning of their files, e.g. #346, #808.

I would suggest that we create a save system that will create files locally, but contain this behind a process.env.NODE_ENV == 'local' check so that it only applies to users who are running local installs.

@G-Ambatte G-Ambatte added complicated P3 - low priority Obscure tweak or fix for a single user labels Dec 26, 2021
@calculuschild
Copy link
Member

I think setting up a local text file save would be fine, especially now that we have metadata embedded into the brews themselves. However we still want local installs that can work with MongoDB for development. So perhaps we could rename the current local environment variable to dev or something, and then local would be just a self-contained to use the local file system?

@G-Ambatte
Copy link
Collaborator Author

One option would be to change the Google icon from a toggle (Mongo/Google) to a dropdown (Mongo/Google/Local).

  • Google would be greyed out and unselectable unless the user has signed in with Google Drive.
  • Local would only be available where process.env.NODE_ENV == 'local'.

This dropdown option could also be extended as additional storage options are incorporated. This could be added to the UserInfo framework as an accountwide default setting, once that PR is completed.

@G-Ambatte
Copy link
Collaborator Author

G-Ambatte commented Jan 6, 2022

Issue #1101 appears to be a similar request to save to a Github repository, although I suspect that the intent there was to be able to do so from the production website rather than a local install.

@5e-Cleric 5e-Cleric changed the title [LOCAL ONLY] Flat File Structure [LOCAL]: Flat File Structure Jan 16, 2024
@dbolack-ab dbolack-ab self-assigned this Jan 17, 2024
@dbolack-ab dbolack-ab removed their assignment Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complicated P3 - low priority Obscure tweak or fix for a single user
Projects
None yet
Development

No branches or pull requests

3 participants