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

Spike filter default #105

Merged
merged 3 commits into from
Sep 29, 2023
Merged

Spike filter default #105

merged 3 commits into from
Sep 29, 2023

Conversation

tomnis
Copy link
Contributor

@tomnis tomnis commented Sep 28, 2023

  • no default values for spike filter warp properties.
  • minor query tweaks to pass idTestDefinition instead of test exections, should be easier to use in calling code.

Copy link
Contributor

@hbonilla2 hbonilla2 left a comment

Choose a reason for hiding this comment

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

Looks good!

@@ -87,8 +87,8 @@ trait ArbiterLike extends PersistenceAware with CanReadHistory {
*
* @return spike filtering settings.
*/
def spikeFilterSettings[T: TestExecutionRowLikeType](testExecution: T): (Boolean, Int) = {
var settings: (Boolean, Int) = this.persistenceUtils.getSpikeFilterSettings(testExecution)
def spikeFilterSettings(idTestDefinition: Int): (Boolean, Int) = {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -59,8 +59,8 @@ trait CanReadHistory extends CorePersistenceAware {
require(maybePriorExecutions.length <= historySize)

maybePriorExecutions.length == historySize && maybePriorExecutions.forall { execution =>
val tag = this.persistenceUtils.getTagName(tagName)
this.persistenceUtils.getTestExecutionTagsRowSafe(execution.idTestExecution, tag.idTagName).nonEmpty
val maybeTag: Option[TagNameRowLike] = this.persistenceUtils.getTagName(tagName)
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@tomnis tomnis merged commit 1282d71 into Workday:master Sep 29, 2023
4 checks passed
@tomnis tomnis deleted the spike-filter-default branch September 29, 2023 00:04
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