Skip to content

Conversation

@sulemanof
Copy link
Contributor

Summary

This includes a static generated file with peg parser and unit tests moved to jest from the legacy timelion app.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@sulemanof sulemanof added release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0 labels Jan 20, 2020
Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

Can you add documentation in a readme or something on how to create the parser code?


// @ts-ignore
import grammar from 'raw-loader!../chain.peg';
import { parse } from '../chain';
Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer to mark somehow that this file was automatically generated from PEG, for example. for kuery.peg we moved it to the _generated_ folder

@alexwizp
Copy link
Contributor

@flash1293 @sulemanof

  • should we add this file to .eslintignore?
    e.g. /src/legacy/core_plugins/vis_type_timelion/public/_generated_/**
  • also probably it should be added into our build process. See tasks/config/peg.js

Copy link
Contributor

@alexwizp alexwizp left a comment

Choose a reason for hiding this comment

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

See comments above

@sulemanof
Copy link
Contributor Author

@flash1293 @sulemanof

  • should we add this file to .eslintignore?
    e.g. /src/legacy/core_plugins/vis_type_timelion/public/_generated_/**
  • also probably it should be added into our build process. See tasks/config/peg.js

Hey @alexwizp, your comments makes sense. Updated.
(but I'm not sure this task is somehow included into our build process, I suppose it's created for manual usage. Сorrect me, if I'm wrong)

@alexwizp
Copy link
Contributor

LGTM! thanks

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

LGTM, didn't check out locally

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@sulemanof sulemanof merged commit 6feabcd into elastic:master Jan 21, 2020
@sulemanof sulemanof deleted the tests/vis_type_timelion branch January 21, 2020 14:38
sulemanof added a commit that referenced this pull request Jan 22, 2020
…55401)

* Use generated parser, move tests to vis_type_timelion

* Remove legacy tests

* Create a grunt task for generating a parser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants