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

Fix/making js work #1456

Merged
merged 7 commits into from May 25, 2022
Merged

Fix/making js work #1456

merged 7 commits into from May 25, 2022

Conversation

Blu-J
Copy link
Member

@Blu-J Blu-J commented May 20, 2022

About

Need to have end to end get/set config
properties

Proof

Showing it

Peek.2022-05-20.11-50.mp4

working

Example of throwing an error
Screenshot_20220524_103704

Blu-J added 4 commits May 20, 2022 09:37
wip: Getting async js

feat: Have execute get action config

feat: Read + Write

chore: Add typing for globals

chore: Change the default path, include error on missing function, and add json File Read Write

chore: Change the default path, include error on missing function, and add json File Read Write

wip: Fix the unit test

wip: Fix the unit test

feat: module loading
wip: Fix missing js files during running

fix: Change the source + add input

wip: Fix missing js files during running
@Blu-J Blu-J force-pushed the fix/making-js-work branch 2 times, most recently from 5e9c3ff to 7246cc0 Compare May 24, 2022 17:01
@Blu-J Blu-J marked this pull request as ready for review May 24, 2022 17:02
@Blu-J Blu-J requested a review from dr-bonez May 24, 2022 17:03
Makefile Outdated Show resolved Hide resolved
backend/src/procedure/js_scripts.rs Outdated Show resolved Hide resolved
backend/src/procedure/js_scripts.rs Outdated Show resolved Hide resolved
backend/src/procedure/js_scripts.rs Outdated Show resolved Hide resolved
backend/src/procedure/js_scripts.rs Outdated Show resolved Hide resolved
@Blu-J Blu-J force-pushed the fix/making-js-work branch 3 times, most recently from 47eb702 to 39ae0e4 Compare May 24, 2022 22:36
dr-bonez
dr-bonez previously approved these changes May 24, 2022
}

/// Used during the subset, we are collapsing the state of the file paths. This will not work with soft link,
/// and the correct method, canonicalizePaths seems to freeze randomly, and is much slower.
Copy link
Member

Choose a reason for hiding this comment

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

This is concerning, we use canonicalize in several places. Evidence?

Copy link
Member Author

Choose a reason for hiding this comment

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

Issue was that the freezing was the order of checking the error from javascript was wrong. Fixed, and made sure the is parent is safer, slower but safer.

Copy link
Member Author

Choose a reason for hiding this comment

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

Move the canonicalize into the is_subset to remove the footguns.
Found an issue on the creation + canonicalize will always fail, which is why I have the parent for those two now. And added the tests for the symlink tests

@Blu-J Blu-J merged commit 7f2494a into master May 25, 2022
@Blu-J Blu-J deleted the fix/making-js-work branch May 25, 2022 18:19
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.

None yet

2 participants