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

Adding rules static content pulling from content-service #27

Merged
merged 3 commits into from
Jun 11, 2020
Merged

Adding rules static content pulling from content-service #27

merged 3 commits into from
Jun 11, 2020

Conversation

joselsegura
Copy link
Collaborator

Description

Provides the mechanism to get the static content for all the rules from the content-service

Fixes #7

Type of change

  • New feature (non-breaking change which adds functionality)

Testing steps

Regular CI

Copy link
Collaborator

@tisnik tisnik left a comment

Choose a reason for hiding this comment

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

It looks pretty good!

github.com/RedHatInsights/insights-operator-utils v1.0.1 h1:uxMsNAMGfhb1ABRXITSHAUnDypceI7eRfLvrwCpq+A4=
github.com/RedHatInsights/insights-operator-utils v1.0.1/go.mod h1:gRzYBMY4csuOXgrxUuC10WUkz6STOm3mqVsQCb+AGOQ=
github.com/RedHatInsights/insights-results-aggregator v0.0.0-20200522085341-3cf0c4554206/go.mod h1:7Pc15NYXErx7BMJ4rF1Hacm+29G6atzjhwBpXNFMt+0=
github.com/RedHatInsights/insights-results-aggregator v0.0.0-20200527194606-78d5e04acbc1 h1:H5KIqvvrrOugAI03zmfTv0I3psuUSuDnsIciU1S38r4=
github.com/RedHatInsights/insights-results-aggregator v0.0.0-20200527194606-78d5e04acbc1/go.mod h1:7Pc15NYXErx7BMJ4rF1Hacm+29G6atzjhwBpXNFMt+0=
github.com/RedHatInsights/insights-results-aggregator v0.0.0-20200604090056-3534f6dd9c1c h1:/kb5AwNxizPf+0R4OWWRvWbLqAwf07Bu97R4WVHk2Uw=
Copy link
Collaborator

Choose a reason for hiding this comment

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

that's strange

Copy link
Collaborator

Choose a reason for hiding this comment

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

Usually if you delete this file, it is reconstructed on the next build.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will try. I removed with sed lines referring to insights-content-service because it uses and previous version and gob didn't work very well. I will check

@codecov-commenter
Copy link

codecov-commenter commented Jun 10, 2020

Codecov Report

Merging #27 into master will increase coverage by 0.54%.
The diff coverage is 57.89%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   21.07%   21.62%   +0.54%     
==========================================
  Files           9        9              
  Lines         541      555      +14     
==========================================
+ Hits          114      120       +6     
- Misses        413      420       +7     
- Partials       14       15       +1     
Impacted Files Coverage Δ
smart_proxy.go 36.45% <52.94%> (+0.31%) ⬆️
server/server.go 19.11% <100.00%> (+0.59%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ea2d36...d12f7e8. Read the comment docs.

Copy link

@natiiix natiiix left a comment

Choose a reason for hiding this comment

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

LGTM

@joselsegura joselsegura merged commit 3127c45 into RedHatInsights:master Jun 11, 2020
@joselsegura joselsegura deleted the pull_content branch June 11, 2020 12:03
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.

Implement pull from insights-content-service and load content into in-memory structures
5 participants