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

Add support for emulator import/export in VSCode #8053

Open
wants to merge 41 commits into
base: master
Choose a base branch
from

Conversation

joehan
Copy link
Contributor

@joehan joehan commented Dec 11, 2024

Description

Adds support for emulator import and export in VSCode.
Screenshot 2024-12-10 at 5 07 11 PM

Screenshot 2024-12-10 at 5 07 19 PM image Screenshot 2024-12-10 at 5 08 47 PM

TODO:

  • Write tests
  • Make the Clear Data and Export Data button not look terrible
  • Add a small settings icon next to the 'Configure Emulator' link

Scenarios Tested

I tested out all the basic CUJs here - export button triggers an export, clear data clears the data, and each of the settings work.

@joehan joehan requested a review from hlshen December 11, 2024 01:14
@tjlav5
Copy link
Contributor

tjlav5 commented Dec 11, 2024

image

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 51.11%. Comparing base (e895fd2) to head (545557c).
Report is 12 commits behind head on master.

Files with missing lines Patch % Lines
src/emulator/hubClient.ts 0.00% 3 Missing ⚠️
src/emulator/controller.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8053      +/-   ##
==========================================
- Coverage   51.14%   51.11%   -0.03%     
==========================================
  Files         423      423              
  Lines       29581    29604      +23     
  Branches     6043     6049       +6     
==========================================
+ Hits        15128    15133       +5     
- Misses      13094    13112      +18     
  Partials     1359     1359              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joehan
Copy link
Contributor Author

joehan commented Jan 3, 2025

@hlshen I added some basic tests here but I;m having trouble getting the existing tests to pass locally for me. When you're back, could you sanity check me on how these were implemented and help me get them up to standard?

@joehan joehan marked this pull request as ready for review January 15, 2025 17:43
@@ -21,6 +22,24 @@ export class EmulatorsController implements Disposable {
this.setEmulatorsStarting();
}),
);

this.subscriptions.push(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: these are very simple so it's ok; but prefer named function OR comments describing these; Otherwise sifting through subscriptions gets difficult

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

Successfully merging this pull request may close these issues.

4 participants