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

Remove support for deprecated StoredScript contexts #31394

Merged
merged 5 commits into from
Jul 5, 2018

Conversation

sohaibiftikhar
Copy link
Contributor

-- related to #27612
-- follows up on #28939

@imotov
Copy link
Contributor

imotov commented Jun 18, 2018

add to whitelist

@nik9000 nik9000 added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v7.0.0 labels Jun 18, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

This looks right to me. @rjernst, since you know this code better than I do, can you also take a look?

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

This looks good. I have one comment.

} else {
return parseRemaining(token, parser);
}
} else if (TEMPLATE_NO_WRAPPER_PARSE_FIELD.getPreferredName().equals(name)) {
Copy link
Member

Choose a reason for hiding this comment

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

TEMPLATE_NO_WRAPPER_PARSE_FIELD and TEMPLATE_PARSE_FIELD constants can be removed now right?

Copy link
Contributor Author

@sohaibiftikhar sohaibiftikhar Jun 19, 2018

Choose a reason for hiding this comment

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

Yes, I already did this. I will commit this together with the fix for the failing test. The method parseRemaining can also go away.

@sohaibiftikhar
Copy link
Contributor Author

@nik9000 @rjernst Could you guys have a looks again when you have time?

Copy link
Member

@nik9000 nik9000 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 to me. Could you add something to migrate_7_0/api.asciidoc to document that this deprecated format is now unsupported?

@nik9000 nik9000 merged commit 40b822c into elastic:master Jul 5, 2018
@sohaibiftikhar sohaibiftikhar deleted the stored_script branch July 5, 2018 13:42
dnhatn added a commit that referenced this pull request Jul 5, 2018
* master:
  REST high-level client: add get index API (#31703)
  SQL: Allow long literals (#31777)
  SQL: Fix incorrect message for aliases (#31792)
  Test: Do not remove xpack templates when cleaning (#31642)
  Reduce more raw types warnings (#31780)
  Add unreleased version 6.3.2
  Scripting: Remove support for deprecated StoredScript contexts (#31394)
  [ML][TEST] Use java 11 valid time format in DataDescriptionTests (#31817)
  [ML] Don't treat stale FAILED jobs as OPENING in job allocation (#31800)
  [ML] Fix calendar and filter updates from non-master nodes (#31804)
  Fix license header generation on Windows (#31790)
  mark RollupIT.testTwoJobsStartStopDeleteOne as AwaitsFix
  mark SearchAsyncActionTests.testFanOutAndCollect as AwaitsFix
  Correct exclusion of test on JDK 11
  Fix doclint jdk 11
  Add JDK11 support and enable in CI (#31644)
  Watcher: Fix check for currently executed watches (#31137)
  Watcher: Ensure correct method is used to read secure settings (#31753)
  SQL: Update CLI logo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants