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

PoC for the online demo #1662

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

PoC for the online demo #1662

wants to merge 2 commits into from

Conversation

lslezak
Copy link
Contributor

@lslezak lslezak commented Oct 10, 2024

Prototype for the online demo

This is a prototype for building a completely static Agama demo.

We have some screenshots on the home page and in the documentation but it would be better to have some real site with working Agama so people can try it live.

The problem is that Agama needs a real system for probing hardware and so on. But we could simply run it on some real system, dump the collected REST API responses and then just replay them on the demo site.

That means the demo would be read-only and all changes done by user would be ignored. But I think that for the demo purposes it would be good enough.

Deployed demo

You can try the deployed code at https://agama-online-demo.surge.sh.

There are still some small glitches (changing the installed product gets stuck, you need to reload the page manually) but in general it works fine.

How to reproduce the build

  • First compile with AGAMA_DEMO=record
  • Login to Agama, click all sections, go to all subpages to trigger all HTTP requests
  • From development console save the window.agama_demo value to src/api/demo.json file
  • Compile with AGAMA_DEMO=replay to build a static site with the recorded data

Improvements

  • Handle better some corner cases (starting installation, product selection...)
  • It would be nice to collect the REST API responses automatically, clicking around in a real browser is error prone.
  • It would be nice to define the target testing system or even have a script which creates the same virtual machine. If you collect the data on a different machine you will get different proposal (very likely with different partitioning). This should be a reproducible process.

@lslezak lslezak added enhancement New feature or request research labels Oct 10, 2024
@mvidner mvidner mentioned this pull request Nov 12, 2024
@coveralls
Copy link

coveralls commented Nov 20, 2024

Pull Request Test Coverage Report for Build 11930073002

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 71.347%

Totals Coverage Status
Change from base Build 11887235390: 0.0%
Covered Lines: 16922
Relevant Lines: 23718

💛 - Coveralls

- Compile with AGAMA_DEMO=<demo_data> to build a static site with the recorded data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request research
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants