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(rest): create new endpoint for import spdx information in admin tab #2110

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

nikkuma7
Copy link
Contributor

@nikkuma7 nikkuma7 commented Aug 29, 2023

Please provide a summary of your changes here.

  • Which issue is this pull request belonging to and how is it solving it? (Refer to issue here)
  • Did you add or update any new dependencies that are required for your change?

Issue: #2111

Suggest Reviewer

You can suggest reviewers here with an @mention.

How To Test?

1: login sw360 with admin user
2: /resource/api/licenses/import/SPDX

How should these changes be tested by the reviewer?
Have you implemented any additional tests?

Checklist

Must:

  • All related issues are referenced in commit messages and in PR


A `IMPORT` request will import SPDX info.

Copy link
Contributor

Choose a reason for hiding this comment

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

Change message to --> A POST request will import SPDX info.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@@ -35,6 +36,8 @@
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the above three imports as they are not used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

} else {
throw new HttpMessageNotReadableException("Unable to import All Spdx license. User is not admin");
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Use proper indentation for the above method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@rudra-superrr rudra-superrr self-assigned this Aug 30, 2023
@rudra-superrr rudra-superrr added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for New-UI Level for the API and UI level changes for the new-ui labels Aug 30, 2023
@rudra-superrr
Copy link
Contributor

Rest doc is broken.

image

@nikkuma7
Copy link
Contributor Author

Rest doc is broken.

image

done.

@rudra-superrr
Copy link
Contributor

code looks good.

@rudra-superrr
Copy link
Contributor

Testing was successful.

@rudra-superrr rudra-superrr added ready ready to merge and removed needs general test This is general testing, meaning that there is no org specific issue to check for labels Aug 31, 2023
@ag4ums ag4ums merged commit 2f3c53d into eclipse-sw360:main Sep 1, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New-UI Level for the API and UI level changes for the new-ui ready ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants