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

Kaarolch kch/slo time slice #314

Merged
merged 5 commits into from
May 27, 2024
Merged

Kaarolch kch/slo time slice #314

merged 5 commits into from
May 27, 2024

Conversation

grosser
Copy link
Owner

@grosser grosser commented May 25, 2024

  • imported + updated + no diff 🎉
  • rake generate not producing tons of diff
  • rake plan not producing tons of diff

SCR-20240525-ait

@grosser grosser mentioned this pull request May 25, 2024
3 tasks
@grosser
Copy link
Owner Author

grosser commented May 25, 2024

@kaarolch lmk if there are any gotchas missing ... seems to mostly work from my limited testing with 1 new timeslice slo🤞

@grosser grosser force-pushed the kaarolch-kch/slo_time_slice branch 2 times, most recently from 45047c9 to a8f7c5a Compare May 25, 2024 14:43
@grosser
Copy link
Owner Author

grosser commented May 25, 2024

I had to change the test too because the example json was not correct (was not what the importer spat out for my example)

TITLES = [:name, :title].freeze
SORT_ORDER = [*TITLES, :id, :kennel_id, :type, :tags, :query, *Models::Record.subclasses.map { |k| k::TRACKING_FIELDS }, :template_variables].freeze
Copy link
Owner Author

@grosser grosser May 25, 2024

Choose a reason for hiding this comment

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

FYI this had an unrelated bug too where we needed flat_map because TRACKING_FIELDS can have multiple entries

READONLY_ATTRIBUTES = [
*superclass::READONLY_ATTRIBUTES,
:type_id, :monitor_tags, :target_threshold, :timeframe, :warning_threshold
].freeze
Copy link
Owner Author

Choose a reason for hiding this comment

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

this missing freeze was hiding the issue with the importer removing sli_specification during normalize (we added sli_specification to READONLY_ATTRIBUTES in a local hack)

@kaarolch
Copy link
Contributor

I've tested it in the local branch and object was correctly imported and also json was generated. :ty

@grosser grosser merged commit 050861e into master May 27, 2024
4 checks passed
@grosser grosser deleted the kaarolch-kch/slo_time_slice branch May 27, 2024 13:14
@grosser
Copy link
Owner Author

grosser commented May 27, 2024

v1.152.0

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.

2 participants