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

Folder names #318

Merged
merged 12 commits into from
Jul 22, 2023
Merged

Folder names #318

merged 12 commits into from
Jul 22, 2023

Conversation

thesuzerain
Copy link
Contributor

@thesuzerain thesuzerain commented Jul 6, 2023

Fixes MOD-457
Fixes MOD-500

@thesuzerain thesuzerain marked this pull request as ready for review July 10, 2023 15:44
Comment on lines +842 to +853
pub fn sync_available_profiles_task(profile_path_id: ProfilePathId) {
tokio::task::spawn(async move {
let span = tracing::span!(
tracing::Level::INFO,
"sync_available_profiles_task"
);
let res = async {
let _span = span.enter();
let state = State::get().await?;
let dirs = &state.directories;
let mut profiles = state.profiles.write().await;

Copy link
Member

Choose a reason for hiding this comment

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

what is this used for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Current debouncer watches inside profile folders and can update projects when the internal structure of the profile changes

I added the debouncer to watch the instances folder ( the profiles themselves) and this is triggered when that updates (eg: we are adding a whole new profile)

theseus/src/api/settings.rs Show resolved Hide resolved
theseus/src/api/profile_create.rs Show resolved Hide resolved
theseus/src/api/profile.rs Show resolved Hide resolved
@Geometrically Geometrically merged commit 3fa33dc into master Jul 22, 2023
6 checks passed
@thesuzerain thesuzerain deleted the folder-names branch July 27, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants