Skip to content

Conversation

@alexeyinkin
Copy link
Contributor

@alexeyinkin alexeyinkin commented Aug 16, 2022

Resolves #22430


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI.

@alexeyinkin
Copy link
Contributor Author

R: @damondouglas


set source(String source) {
codeController.text = source;
void setSource(String source) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We recently turned this from setSource to set source following the linter, but now we need nullable getter with a non-nullable setter, and that does not work, so back to the method again.

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

await Future.wait(SDK.values.map(_loadDefaultExample));
} catch (ex) {
if (defaultExamplesMap.isEmpty) {
rethrow;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We used to load the 4 default examples sequentially, and if any of them failed, nothing was loaded. Now go in parallel and allow failures in some of them.

final controller = state.snippetEditingController;

if (controller == null) {
return const LoadingIndicator(size: kLgLoadingIndicatorSize);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We used to show a blank editor before the example is loaded, and it was confusing. Now we only get the controller with the example already in it, unless deliberately showing an empty editor.

Copy link
Contributor

@damondouglas damondouglas left a comment

Choose a reason for hiding this comment

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

@pabloem LGTM

@pabloem
Copy link
Member

pabloem commented Aug 25, 2022

LGTM thanks

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.

[Task]: Playground state preservation on SDK switch

3 participants