Skip to content

APIs for cve and epv reports#145

Open
anuragtr wants to merge 1 commit into
fabric8-analytics:masterfrom
anuragtr:cve-epv-api-3
Open

APIs for cve and epv reports#145
anuragtr wants to merge 1 commit into
fabric8-analytics:masterfrom
anuragtr:cve-epv-api-3

Conversation

@anuragtr

Copy link
Copy Markdown

This pull request is to integrate APIs to fetch cve and epv reports and reports list.

@centos-ci

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

2 similar comments
@centos-ci

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@centos-ci

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@anuragtr

Copy link
Copy Markdown
Author

[test]

@anuragtr anuragtr changed the title [WIP] - APIs for cve and epv reports APIs for cve and epv reports Mar 20, 2019
@anuragtr anuragtr requested a review from yzainee-zz April 1, 2019 08:47
Comment thread src/rest_api.py

if request.args.get('fromdate') is not None:
for i in epv_list['objects']:
if ((float(re.sub("[^0-9]", "", lower)) <= float(re.sub("[^0-9]", "", i))) &

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@anuragtr would you please add some comments for this check here and why is this required?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@samuzzal-choudhury this is to ensure that the report names are within the date limits user entered in the api, like for following api request " ....api/v1/epv-report/list?fromdate=2019-01-01&todate=2019-04-01 " report names need to be fetched between 'fromdate' and 'todate'

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.

3 participants