-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conversation
@kaarolch lmk if there are any gotchas missing ... seems to mostly work from my limited testing with 1 new timeslice slo🤞 |
45047c9
to
a8f7c5a
Compare
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)
I've tested it in the local branch and object was correctly imported and also json was generated. :ty |
v1.152.0 |
rake generate
not producing tons of diffrake plan
not producing tons of diff