Open Issues Need Help
View All on GitHubAI Summary: This task requires implementing backend security features to differentiate between regular users and administrators. This involves creating functions to retrieve user IDs and team member information from the Onshape API, defining security levels (USER, MEMBER, ADMIN), and developing a mechanism to determine the current user's security level, considering both production and development environments. A method for enforcing admin privileges, either through a decorator or direct checks within relevant functions, needs to be implemented. Finally, a mechanism to communicate the user's security level to the frontend needs to be established.
The backend for FRCDesignApp, plus utilties for generating Onshape FeatureScript code and working with the Onshape api.
AI Summary: Implement support for deriving parts into Onshape Part Studios by adding a derive feature using the existing `part_studios.add_feature` endpoint. This involves creating a suitable feature definition (potentially reusing one from the old MKCad app) and adding error handling to prevent deriving assemblies into Part Studios, displaying a warning to the user if attempted.
The backend for FRCDesignApp, plus utilties for generating Onshape FeatureScript code and working with the Onshape api.
AI Summary: This task requires refactoring the `save_all_documents` function in the Flask backend to use asynchronous operations. This involves installing the `flask-async` module using `uv`, creating asynchronous versions of relevant endpoints, and adding asynchronous loops around Onshape API calls within the `save_element` and `save_document` loops. The goal is to improve performance by concurrently processing documents.
The backend for FRCDesignApp, plus utilties for generating Onshape FeatureScript code and working with the Onshape api.