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

Updating the policy file term #3986

Merged
merged 1 commit into from
Jun 25, 2020

Conversation

lancewf
Copy link
Contributor

@lancewf lancewf commented Jun 25, 2020

πŸ”© Description: What code changed, and why?

Fixing event feed policy file filtering. In the UI the event type term for a policy file was incorrect.

πŸ‘ Definition of Done

Filtering by policy file event type works in the UI.

πŸ‘Ÿ How to Build and Test the Change

  1. build components/automate-ui-devproxy && start_all_services && start_automate_ui_background && ui_logs
  2. After the UI finish loading, create a policy file event with these two commands.
  3. rfc_time=$(date --rfc-3339=seconds -d "$((RANDOM % 144)) hour ago" | sed 's/ /T/' | sed 's/\+.*/Z/');
  4. cat components/ingest-service/examples/actions/policy_update.json | jq --arg rfc_time "$rfc_time" '.recorded_at = $rfc_time' | send_chef_data_raw lb,
  5. Go to https://a2-dev.test/dashboards/event-feed and filter by the policy file event type.

βœ… Checklist

Signed-off-by: Lance Finfrock <lfinfrock@chef.io>
@lancewf lancewf self-assigned this Jun 25, 2020
@lancewf lancewf added automate-ui event feed This issue or pull request pertains to the event feed. labels Jun 25, 2020
@lancewf lancewf marked this pull request as ready for review June 25, 2020 21:06
@lancewf lancewf requested a review from a team June 25, 2020 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automate-ui customer-reported issues reported by customers event feed This issue or pull request pertains to the event feed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants