Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Do not use dev/generator #66

Merged
merged 3 commits into from
Jun 16, 2020
Merged

Conversation

mtojek
Copy link
Contributor

@mtojek mtojek commented Jun 16, 2020

Issue: elastic/package-registry#466 (comment)

Changes:

  • do not use dev/generator to build packages
  • use -dry-run to validate packages
  • encode dashboards

It would be possible to get rid of building packages (and copying to build directory) now, but it will break the integration tests as docker image requires packages to be present in public/package, where public in a mount point. I will improve this in the next step, I need to modify package-registry source.

@mtojek mtojek requested a review from ruflin June 16, 2020 09:03
@mtojek mtojek self-assigned this Jun 16, 2020
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 16, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #66 updated]

  • Start Time: 2020-06-16T09:07:30.247+0000

  • Duration: 6 min 18 sec

Copy link
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

Change LGTM.

Please do me the favor that after this is merged and deployed to spin up Kibana and check if all the things are still working as expected.

@mtojek mtojek merged commit ce72d01 into elastic:master Jun 16, 2020
thomasneirynck pushed a commit to thomasneirynck/package-storage that referenced this pull request Sep 28, 2021
Instead of dynamically serving the package endpoint, an `index.json` file is pregenerated when run `mage build` for each package. This simplifies the serving code.

A package `p` was created to share the code. The naming is not optimal but `package` cannot be used as it is a reserved term. A better structure will be found later.

The `.tar.gz` handler can also be removed, as it was only there as a placeholder for the matching of the endpoint. Now that `/package/{name}` endpoint is removed, it's not needed anymore. Overall there are now only 2 endpoints left. CatchAll to match files and the `/search` endpoint handler.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants