-
Notifications
You must be signed in to change notification settings - Fork 102
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
feat(upload): added the upload file page #46
Conversation
@GMishx current implementation is perfectly creating a file, But there is one question regarding the dropdown of select folder, I have implemented it like the way I did with search as suggested by you, by default I have provided it with the Id, is it the right approach? And for the time being we decided to wrap with all the |
You can check #45, @Aman-Codes is loading them.
Okay, lets check the REST API and discuss this in the meeting. There is a possibility to do it in single call. |
Okay Sure. |
cb9c1e1
to
6b8a3f6
Compare
@GMishx I have added the jobs api as well for scheduling analysis of uploaded files please review it. |
> | ||
Select an already uploaded package for reuse in specific folder | ||
</InputContainer> | ||
<select> | ||
<option value="Software Repository">Software Repository</option> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be fetched with combination of /folders
and /uploads
endpoints.
903ec76
to
df22b97
Compare
Signed-off-by: Shruti3004 <mail2shruti.ag@gmail.com>
df22b97
to
d45c5d3
Compare
4dd7ce1
to
8e5513c
Compare
@GMishx In yesterday meeting we had a discussion regarding creating the label named urgent, actually this pr has massive changes so when I rebase it yesterday, on rebasing it overwrites the code twice, then again i copy the file from my commit, this leads to increase the work and time wastage. So, unamously we reached to a conclusion that we can have this label for such prs. |
Thank you for letting me know about the label but I can only do so much working as a single maintainer reviewing the PRs :-). Also, there are many changes that needs to be done before I can merge this PR, so I left the review comments. You want to merge it now and resolve them in a separate issue? |
@@ -36,4 +36,9 @@ export const endpoints = { | |||
create: () => `${apiUrl}/folders`, | |||
delete: (folderId) => `${apiUrl}/folders/${folderId}`, | |||
}, | |||
upload: { | |||
uploadCreate: () => `${apiUrl}/uploads`, | |||
scheduleAnalysis: () => `${apiUrl}/jobs`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be part of jobs
object?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we have to fix it once we hop on jobs section then we will keep all the related apis to it in that.
Signed-off-by: Shruti3004 <mail2shruti.ag@gmail.com>
8e5513c
to
6ef8e7d
Compare
Yes, I understand, @GMishx I have no issue adding the changes in this pr itself but the thing is on rebasing the coding is getting overwritten, is there is any other way to resolve that. |
Only way to prevent this situation is I do not merge any other branch till the branch marked with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good.
Tested, working fine.
Just a request if the form can be reloaded or cleaned once the "Upload" is done, I can merge this PR.
Sir I have set that wont it working for you? The checkmarks get clear and probably you are seeing that file name but it is just displaying if you try creating it without adding file it will fail. |
Oh, my bad. Didn't pull the code. |
Description
Added the upload file page.
Changes
How to test
visit to the route '/upload/file'
Screenshots