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

Enhance the mock data to include mock extensions #389

Open
chrisguindon opened this issue Feb 25, 2021 · 6 comments
Open

Enhance the mock data to include mock extensions #389

chrisguindon opened this issue Feb 25, 2021 · 6 comments

Comments

@chrisguindon
Copy link
Member

chrisguindon commented Feb 25, 2021

Pushing code to our staging server and waiting 10 minutes to see the result is not efficient so we need to run the application in dev mode with mock data.

We are open to suggestions if there is a better way for us to work on this! I've asked for some additional details here: #343 (comment)

@chrisguindon chrisguindon changed the title Enhance the mock data to include mock extentions Enhance the mock data to include mock extensions Feb 25, 2021
@spoenemann
Copy link
Contributor

Feel free to modify and enhance the MockRegistryService as you need. The JSON data formats are defined here:
https://github.com/eclipse/openvsx/blob/master/webui/src/extension-registry-types.ts

@chrisguindon
Copy link
Member Author

Thanks, MIro, please note that I am not expecting you to do all the work. However, we need to find ways to get more people involved with this project.

I am trying to raise issues in the hope that we can make it easier for people to get involved.

@kineticsquid
Copy link
Contributor

@chrisguindon Is this still an issue?

@chrisguindon
Copy link
Member Author

chrisguindon commented Oct 25, 2022

@kineticsquid I would say yes.

Step to reproduce:

  1. Follow the instructions from the getting started: https://github.com/EclipseFdn/open-vsx.org#getting-started
  2. Visit the app in the browser: http://localhost:3000/
  3. No extensions.

Because of this, a front-end developer that wishes to provide a patch to the CSS can't really see his work in action since running the app in dev mode does not include any extensions. However, what we have now does allow us to test simple changes such as adding a menu link in the template.

The feedback loop takes more than 10-15 minutes (assuming you're a developer that can push to staging). This makes it really hard for a front-end developer to do work on this project.

In most of our projects, the feedback loop is measured in seconds not minutes.

@kineticsquid
Copy link
Contributor

@chrisguindon There is work going on now to capability to have an instance act as a cache for another instance. Either a complete copy or a curated set of extensions, the ability for one instance to be populated from another. Seems this might be a solution for this test data.

@chrisguindon
Copy link
Member Author

@kineticsquid Maybe...

It would be nice if we could query the API of a running instance in order to view content when running the App in dev mode.

For our use case, we don't have a back-end service running on our local machines.

I think we can also achieve what we need with the solution suggested by @spoenemann via #389 (comment)

At the end of the day, we simply need a solution where we can easily start an instance of the front-end application which includes extensions so that we can modify and view our changes before pushing to staging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants