Skip to content

Comments

General fixes to ensure integrity and progresses on the UI#23

Merged
Mattia-Marino merged 98 commits intomainfrom
merge-temp
Jan 17, 2025
Merged

General fixes to ensure integrity and progresses on the UI#23
Mattia-Marino merged 98 commits intomainfrom
merge-temp

Conversation

@Mattia-Marino
Copy link
Collaborator

No description provided.

Mattia-Marino and others added 30 commits January 9, 2025 11:33
Now all current responses of deleteProject will return a map as body, in order to adhere to JSON format
Now deleting a project also deletes the reference in the users and deletes the associated teams and artifacts. Still necessary to delete the tags though, but it might be handled when deleting the artifacts. Still it would be nice to do another check here
In the method validateProject is now returned a list of missing emails as a message of error whenever someone tries to add e-mails currently not associated with any user.
- Modified Artifact model by including an optional field "description", removed the "content" attribute and added projectId, teamId and filePath where it will be stored
- Modified DTO to create an artifact to properly match the new Artifact model. It will include the optional description, removed content and added project ID and file to be saved
- Added new method saveFile in ArtifactService, that will handle properly the save of the file in the local database and create the proper file path. Temporarily removed methods to create and update the artifact, and removed permanently validateArtifact
- Temporarily commented out the code of ArtifactMapper and ArtifactTest
Changed the name of some parameters of project that created confusion
- Implemented the method to create an artifact in ArtifactService
- Added artifactIds attribute to Team
- Commented out broken team tests
Finally brought to a proper working state the creation of an artifact. Artifacts will be stored in the directory "artifacts/" located in the root of the project. Here every file will start with a unique name. The file metadata instead will be stored in MongoDB in the apposite collection.

Also did some small fixes on GmailService and to the setup scripts, to put some space here and there and to handle correctly the presence of an already existing setup.zip folder when copying the secrets from the project.
token validation check was moved from the javascript file token-validation.js to nav-bar-logic.js. everytime the navbar gets loaded, the token gets checked.

token-validation.js was restored
New implementation of the project update method. Still needs some fixes and polishing, but we're getting there. Also, the method addArtifact in ProjectService has been deleted, as a method who does that job has already been created in ArtifactService.
- Fixed the implementation of project update, to avoid useless computation. Can still benefict from some more checks and functionalities, but it is in a working state.
- Changed endpoints of project, got rid of some annoying discrepancies in endpoint names
Solved bug: artifact ID is correctly added to project and team when the artifact is created
Copy link
Owner

@follen99 follen99 left a comment

Choose a reason for hiding this comment

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

nice ♥️ 💋

Copy link
Collaborator

@RaffaeleIzzo01 RaffaeleIzzo01 left a comment

Choose a reason for hiding this comment

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

All good!

@Mattia-Marino Mattia-Marino merged commit 400a914 into main Jan 17, 2025
4 checks passed
@Mattia-Marino Mattia-Marino deleted the merge-temp branch January 17, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants