Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 95c82ec5be90e64f8e62072d4b7742db77b0558f
Merge: 7066061152 c796d856f7
Author: Darkhan Nausharipov <[email protected]>
Date:   Tue Mar 28 16:07:43 2023 +0600

    Merge pull request #441 from akvelon/issue25283-tobf-sucfuu

    [ToB] [Frontend] Save code for unauthenticated users

commit c796d856f74dfb3d3371c9421e2c09eb4a5196a8
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Mar 28 16:05:08 2023 +0600

    _isSnippetTypeSavable (#25283)

commit 7b487a0b4c2fd83512bc2da53bf403d60520ae3d
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Mar 28 15:49:29 2023 +0600

    disabled saving solution code (#25283)

commit be3e3460527263146eb13c440056d553ae867938
Author: Alexey Inkin <[email protected]>
Date:   Tue Mar 28 13:22:05 2023 +0400

    Improve comments, remove unused code (#25283)

commit 3434381ed159e646949e5e736a491b95e0cad66d
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Mar 27 20:28:39 2023 +0600

    getSavedDescriptor (#25283)

commit 7dbb6b44dd7dcb5e0835f62d4d9454b4c5cb7c9a
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Mar 27 20:28:07 2023 +0600

    _getStandardOrEmptyDescriptor (#25283)

commit b9d76e61660b4180efed79cfb19470aad84e7e00
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Mar 27 18:19:49 2023 +0600

    comments (#25283)

commit cc7ff54d6c231285dc38eb048da753cb7ddf59a8
Merge: 8410493f38 7066061152
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Mar 24 21:23:19 2023 +0600

    Merge branch 'issue24538-save-user-code' into issue25283-tobf-sucfuu

commit 8410493f388ab91f42bb04c26a087331dc25f2e5
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Mar 24 20:37:49 2023 +0600

    comments (#25283)

commit 7066061152a1415297be5b1fb4729a3322b9676f
Merge: 879795b632 ddae966f33
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Mar 24 20:03:34 2023 +0600

    Merge branch 'master' into issue24538-save-user-code

commit 8575c6e8f1f4a837c62403e941cf31e1511cf290
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Mar 24 12:33:28 2023 +0600

    addressing comments (#25283)

commit 172f18f33dc5648e0d5a6105430a10e2baaca8fb
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Mar 20 19:26:20 2023 +0600

    comment fixes (#25283)

commit 099b0f19955dc119e0de53a098d424d4cf2d6ad3
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Mar 17 13:28:42 2023 +0600

    changes for demo (#25283)

commit 426d43ee066b02816ceef4deab62f96ee855fdc8
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Mar 15 21:42:15 2023 +0600

    untested multi-file saving (#25283)

commit 879795b632f5863ae9f477c30f40cb18164cb205
Merge: 1521ab9d93 04c2de61e5
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Mar 14 20:39:29 2023 +0600

    Merge branch 'master' into issue24538-save-user-code

commit 8c7807bbb47906cfc4d68c6a30dc740325688bf5
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Mar 2 20:24:01 2023 +0600

    setUnit & HiveLocalStorageCache (#25283)

commit 6b54331285e912d3e989ffcc6d7a5c446616ea2f
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Feb 28 18:32:03 2023 +0600

    unfinished ContentExampleLoadingDescriptor (#25283)

commit 20e097ef00ab04cc25c4fca0598de4d4cd6a7b9a
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Feb 27 12:03:59 2023 +0600

    deleted google_sign_in from pubspec (#25283)

commit bdf6f4948f9a9a8624f2c4417dd9645b6e188f7e
Merge: f755775829 1521ab9d93
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Feb 27 12:01:19 2023 +0600

    Merge branch 'issue24538-save-user-code' into issue25283-tobf-sucfuu

commit 1521ab9d93f1ea1d964a58ac0f7b87213702cd01
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Feb 23 19:36:50 2023 +0600

    CodeBlock widget (#25529)

commit b638355e33cfbc1cd73e8ccaf7b8b65dfa6c7184
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Feb 23 19:34:00 2023 +0600

    added missing notifyListeners (#24538)

commit 5d22b4cda7a944cbbd650e6673ed55d63f4b5dc1
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Feb 23 19:33:01 2023 +0600

    scrollbar in markdown code block (#25529)

commit f7557758290b48fda83b8abaf6487bce36ea6c5e
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Feb 22 11:37:58 2023 +0600

    resolve deprecation warnings todo (#25283)

commit 56264acd2da1a565f3dbb98dab1a41dff54ef54b
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Feb 22 11:30:22 2023 +0600

    flutter v3.7 support (#24538)

commit 08989ab7e0a8bf7623aff19de10e22b38ecb20dd
Merge: 9e3666c706 40838f7644
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Feb 22 11:00:47 2023 +0600

    Merge branch 'master' into issue24538-save-user-code

commit 6860d1b367e739abc73e35e48774869ae016872f
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Feb 20 11:39:36 2023 +0600

    Flutter v3.7.3 support for ToB (#25283)

commit 9e3666c706ff3bc6a3a02ccaf33738a116820502
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Feb 8 17:29:53 2023 +0600

    set sdkId to fix a bug (#24538)

commit 5381d9e0c10d29e2e605c941d0b74d0db16a7b27
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Feb 6 13:37:00 2023 +0600

    _Buttons padding (#24538)

commit 4a419a611c8e7e28e178fb0488bd308d6c52add8
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Feb 6 11:26:47 2023 +0600

    moved hints to the left (#24538)

commit 5637c4171a65ccb4a87019b492245b8cdaec38a5
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Feb 6 11:22:07 2023 +0600

    scrollable hints (#24538)

commit c7c51b1234b87fe374bce6f9b7dc27d299605b00
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Feb 6 11:00:15 2023 +0600

    commit to relaunch RAT check (#24538)

commit 8eed5d3174fdf193b9a4c62631e3687c2c505d6f
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Feb 3 14:53:06 2023 +0600

    comment fixes (#24538)

commit 7f943d51dcc975f39dc666b19e107c8956fb2048
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Feb 3 12:48:46 2023 +0600

    organized TourNotifier (#24538)

commit 52227d538363a74fb96eb7410eb1d606ef34429f
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Feb 3 12:37:55 2023 +0600

     deleted unitProgressByUnitId getter (#24538)

commit 4e3d3cfe134688a8e14813092d1819e97a552b01
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Feb 3 12:31:54 2023 +0600

    alphabetic order (#24538)

commit bfc759666b71f4c265285633f1b57bb3e549eabd
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Feb 3 12:26:10 2023 +0600

    getUnitSavedSnippetId (#24538)

commit a836d0180e328d0bcecf614eb7178734422446ff
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Feb 2 18:57:05 2023 +0600

    comment fixes(#24538)

commit 01611b02f9947d4401ed056528b92e707c619a27
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Feb 1 20:26:36 2023 +0600

    comment fixes (#24538)

    comment fixes (#24538)

commit fff0bfa7e4f3e68ae5ac6e7191f7600b22236dca
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Jan 27 01:29:59 2023 +0600

    save code status (#24538)

commit d4401c9156a8599cb44b2f92e189906615eff5cf
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Jan 26 14:14:18 2023 +0600

    comment fixes (#24538)

commit f3d1c0f66fad5072008434516ec93bb23bf1f138
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Jan 26 10:48:50 2023 +0600

    snippet type enum switcher (#24538)

commit 25dec321066e89e2ce9f1f1574b42d002c61fa80
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Jan 25 00:48:14 2023 +0600

    comment fixes (#24538)

commit f2d2f8fa304b19c6ebf7411745365e5cb59c3557
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Jan 23 21:32:19 2023 +0600

    reverted to unitProgress (#24538)

commit a5310e0eb21d00dc8e3256562e5530bc21fa496c
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Jan 23 21:28:40 2023 +0600

    missing notifyListeners (#24538)

commit 18ecd23b17cc9397311c2a0a51bbef25c62e2e0b
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Jan 23 21:26:52 2023 +0600

     reset is shown immediately (#24538)

commit ea8acc0d68528fd435a2134feb1ad35076114fa4
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Jan 23 18:58:41 2023 +0600

    removed comment after discussion (#24538)

commit 92b4ec47c0526523da672f4472f2776a46e40de5
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Jan 23 09:06:57 2023 +0600

    tested with show solution (#24538)

commit ebce111cc242e6f2323717c6fda0761d1e69bdc9
Author: darkhan.nausharipov <[email protected]>
Date:   Sun Jan 22 22:28:47 2023 +0600

    set show solution false on reset (#24538)

commit ece905cfb6d8abe5fc64f3f8d023699a17047fd5
Author: darkhan.nausharipov <[email protected]>
Date:   Sun Jan 22 22:08:53 2023 +0600

    pre-review fixes (#24538)

commit 725e8d108678c0b9da1718a478468207c1e4c446
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Jan 20 19:06:51 2023 +0600

    post-merge commit (#24538)

commit b6cb6b93e92df4571df84bdbc524a815d7ca2308
Merge: eb23673d01 428ec97e30
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Jan 20 19:06:03 2023 +0600

    Merge branch 'master' into issue24538-save-user-code

commit eb23673d0178f90b313fb18c591505f8952eb24b
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Jan 20 18:39:35 2023 +0600

    setSaveCodeListener to activeFileController.codeController (#24538)

commit d3b0085253c985e52351bf541587d447db08c94d
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Jan 17 15:28:17 2023 +0600

    merge fixes (#24538)

commit 8cd106d00f6369b8dec1f92ca44190ded3378d30
Merge: a8502624ca a5e6d90081
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Jan 17 15:27:42 2023 +0600

    Merge branch 'master' into issue24538-save-user-code

commit a8502624ca74909e27e5f90508c0bea22619b382
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Dec 27 19:06:23 2022 +0600

    getUnitSnippets in unit progress (#24538)

commit 8dd70984cdb3aebd676c2d92f4508b3b0d6a7ae5
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 8 22:33:32 2022 +0600

    user menu without padding

commit 90b9e3d49adf6c075fbdeef881ee161b109fd1df
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 8 22:32:37 2022 +0600

    save user code barely works

commit 44172c57c2d806b6521fc966febabb949e3e77a7
Merge: d442e63668 59d0fd3129
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 8 14:15:37 2022 +0600

    Merge branch 'issue24394-tobf-hint' into issue24538-tobf-save-user-code

commit d442e63668b15330bd8a68fb18312f5cc06e5640
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Dec 7 15:22:57 2022 +0600

    no duplicate slash with reg exp (#24538)

commit e76860497a6983cd28e29f3d4065c9331ac32660
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Dec 6 10:11:12 2022 +0600

    updated import (#24538)

commit 63745d564ace082d34be5360cfd264cfaef6e86a
Merge: d15913b289 af936d0b11
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Dec 6 10:02:57 2022 +0600

    Merge branch 'issue23692_auth' into issue24538-tobf-save-user-code

commit 59d0fd3129bcab3b55a66f671898ce6c5bcc84df
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Dec 2 20:50:12 2022 +0600

    solution managed inside of tour notifier (#24394)

commit 5ca484661d330a0d7bea371a767f8d37402db520
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Dec 2 15:57:30 2022 +0600

    show solution snippets (#24394)

commit 5e3ac5857e6fbe585e8f6b43cca75265b59e25c2
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Dec 2 14:20:43 2022 +0600

    renamed to unit content widget (#24394)

commit 372b97fb5cd457125137c3ceb71332acecbc9117
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Dec 2 12:01:39 2022 +0600

    group progress indicator size adjustment (#24394)

commit 48ea57d7c97a817458741d7062955add3b758c76
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Dec 2 11:50:08 2022 +0600

    title in unit content (#24394)

commit 338c67317cdc9eec5a4046af9e5599737408baf2
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Dec 2 11:01:57 2022 +0600

    extracted widgets, hints emptiness check (#24394)

commit 36d3105f52fad0aa37ddaeaac340ee31a8a4e86b
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 1 21:12:05 2022 +0600

    hint in dialog (#24394)

commit af936d0b115bf42f21310719dc1b18e580010421
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 1 14:59:52 2022 +0600

    added firebase_options.dart into gradle rat exclusions & added a missing license (#23692)

commit 9e1bbb081c575358445750694d27e393ebd72406
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 1 14:02:46 2022 +0600

    specific imports (#23692)

commit 9720c134b5733fb439ae2b4df12bff07c359a95b
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 1 13:06:57 2022 +0600

    moved dismissible overlay (#23692)

commit 869b40cefa9222b5a61db0125f6c54340dfc918c
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 1 13:06:40 2022 +0600

    extracted overlay body (#23692)

commit c8db1ef778f401a9029c113a784faeb94919d660
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 1 13:05:12 2022 +0600

    refined open overlay  (#23692)

commit 8b639d08b3d6101ba9b13a6f6fe32b7cc7261559
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 1 12:50:35 2022 +0600

    all caches extend cache (#23692)

commit a10795205507a66b8cd90ed8caaf112663a60c8c
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Dec 1 12:47:19 2022 +0600

    renamed user progress cache to unit progress (#23692)

commit e215ec4c676e88d85fad3ba08e222ac19d8953b8
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Nov 30 10:37:05 2022 +0600

    generated files

commit 96e41f7d01c50e2cfa96fbc120fca69b3d29cb39
Merge: 1e38328e56 37fb90c98d
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Nov 30 10:30:05 2022 +0600

    Merge from master

commit 1e38328e564f72b4e18439c60610902423223dbd
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Nov 29 15:40:15 2022 +0600

    removed "fix exception" todo after filing an issue (#23692)

commit b6c4e3e66c30fa4cbdfbbefd1a41e649c32b9ecb
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Nov 29 13:52:29 2022 +0600

    added async (#23692)

commit 27b26e41a81f07faac060c3d2e45f5b7bea19d5a
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Nov 29 13:31:24 2022 +0600

    clearUpdatingUnitId (#23692)

commit 4b2d855920d6d63dfff4412fc9bdfb9ddbbdd695
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Nov 29 13:30:12 2022 +0600

    renamed user progress model to unit progress (#23692)

commit ef637403aa114f43f82ac005254632f2d35e0bad
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Nov 29 13:09:58 2022 +0600

    rearranged completeUnit (#23692)

commit fb1fea1af8069ae02ba261781ca923cd40796c97
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Nov 29 11:43:06 2022 +0600

    comment fixes (4)

commit 749d8b19bea072be84cace76bd1fb998a3a76531
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Nov 29 11:03:34 2022 +0600

    pubspec.lock

commit 0a76b4019647ebcbec76739b078b01fddd37789b
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Nov 29 11:03:17 2022 +0600

    pubspec.lock ignored only in PGC

commit c6004b0f220be0959b1fadc1fcffb04e4004cd97
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 28 21:17:16 2022 +0600

    no final else

commit d55622e30df308eb61a42ecd1f03930012ec0cb8
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 28 21:15:15 2022 +0600

    missing await

commit 65dc5219943a948e7922da44ce34b54474bffaf1
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 28 21:12:22 2022 +0600

    updating & blocking complete unit button (#23692)

commit 1bbc09279604dd2025ca6c93cfc85d2df9bece09
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 28 14:36:25 2022 +0600

    comment fixes (3)

commit 860780836bdf8cdbbcbe5952232abc3544effc9e
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 28 12:44:52 2022 +0600

    pubspec.lock in gitignore

commit a575717869b239f59374caf74f81db74191c3781
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 28 12:41:44 2022 +0600

    deleted pubspec.lock

commit c2f74a59ed6a364d04a9cb0d11ea0e1f0ce5ffbf
Author: darkhan.nausharipov <[email protected]>
Date:   Sun Nov 27 21:05:49 2022 +0600

    review comments (2)

commit adbdeb6eec823178d487a3a3b3bba07ceda6efa9
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Nov 24 15:15:57 2022 +0600

    deleted file (#23692)

commit 6ed38acb2beb4b960eb7a77da1282683e2805bc0
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Nov 24 15:14:07 2022 +0600

    unused import (#23692)

commit 2c90ced90376df81d0989c233995320a73c7feb1
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Nov 24 14:55:05 2022 +0600

    login_overlay (#23692)

commit 6d21e1ea3f0837616a185e4b1f0d48398799791d
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Nov 24 14:52:08 2022 +0600

    kOpenLoginOverlay (#23692)

commit 64965a1e1f49f0240b4e27a387aad099caade1b2
Author: darkhan.nausharipov <[email protected]>
Date:   Thu Nov 24 14:44:19 2022 +0600

    canCompleteCurrentUnit (#23692)

commit 7fbaf3843394530602a87805fa274ace7620ae29
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Nov 23 15:21:56 2022 +0600

    new configs & todos

commit 0b6fc8f805d3417f819ebafadc40f2571d73df99
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Nov 22 21:07:35 2022 +0600

    candidate repository

commit 3df27bc7fc71f12d48b3aa0bf5d58e57ba1327b9
Author: darkhan.nausharipov <[email protected]>
Date:   Tue Nov 22 15:12:05 2022 +0600

    untested refinement (1)

commit 52838e500fc106414dbb47d0c05fe4042c812509
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 21 21:54:53 2022 +0600

    notifier objects naming

commit 2068ce9e8da8b6caa41e1be09dfa04e26e2ca567
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 21 21:50:25 2022 +0600

    deleted show sdk selector

commit a6597d434a3aed640fc230976afd3637217d8792
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 21 21:44:55 2022 +0600

    untested refinement

commit 10b287b89456368b146fd9bc1edc38bf0c28fc73
Merge: 4aedd5a607 5ad067f7cc
Author: Darkhan Nausharipov <[email protected]>
Date:   Mon Nov 21 19:06:30 2022 +0600

    Merge pull request #324 from akvelon/tour-header-sdk-selector

    SDK selector in tour scaffold

commit 5ad067f7ccdb976fcdb26102d983bea936a9ba83
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 21 17:55:38 2022 +0600

    non-nullable onChanged

commit 4aedd5a6072e92dbfd7487652619e7a14e291375
Merge: 6f53e30d39 70c0d61d3a
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 21 16:06:38 2022 +0600

    SDK selector with fixed comments

commit 6f53e30d39ba793850153a2a6077fbe6bbab2b51
Author: darkhan.nausharipov <[email protected]>
Date:   Mon Nov 21 16:04:31 2022 +0600

    cache license

commit 70c0d61d3a96e120d312f1aecc6a38e73e551697
Author: darkhan.nausharipov <[email protected]>
Date:   Sat Nov 19 20:46:18 2022 +0600

    comments (0)

commit de273baf06cc76e4da1f94064131f0093e265f0c
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Nov 18 20:51:31 2022 +0600

    hide back button after navigating from welcome

commit 3a10e8d7633bb4d6d9bd39ba5515aacae6208554
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Nov 18 20:48:13 2022 +0600

    show sdk selector in welcome screen

commit de0f7c34f2a686f22137c464d8815a5f6c2cb9c4
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Nov 18 20:00:17 2022 +0600

    sdk selection works with auth

commit 3c534d864b5a36cf4f63b64af0332753fd420b9a
Merge: 12a685d1f0 b78bbd33dc
Author: Darkhan Nausharipov <[email protected]>
Date:   Fri Nov 18 19:41:06 2022 +0600

    Merge remote-tracking branch 'origin/tour-header-sdk-selector' into auth_sdk_demo

commit 12a685d1f00140981c8241a2477b5ee0707e47be
Author: darkhan.nausharipov <[email protected]>
Date:   Fri Nov 18 19:36:34 2022 +0600

    unit file fix

commit d25eaf52df834b655421319b14e43e0afc7c63f1
Merge: 5297d2548c cf56af2799
Author: Darkhan Nausharipov <[email protected]>
Date:   Fri Nov 18 19:22:22 2022 +0600

    Merge branch 'master' into issue23692_auth

commit 5297d2548ced6027c58b75b9d917fbfeb7052369
Author: darkhan.nausharipov <[email protected]>
Date:   Wed Oct 19 19:50:43 2022 +0600

    auth, complete unit, user progress

    AuthNotifier draft (#23692)

    Comments (#23692)

    Comments (#23692)(1)

    sign in with google works (#23692)

    new configs (#23692)

    get user progress draft (#23692)

    comment fixes (#23692)

    sign in in IntroTextBody (#23692)

    reverted config (#23692)

    comment fixes (#23692)

    WIP before rebase (merge) (#23692)

    Squashed commit of the following:

    commit bff4919ff00ec3b5d7186efde41c884dfc4c8344
    Merge: 79ba69483a ce8d618c77
    Author: Alexey Romanenko <[email protected]>
    Date:   Thu Nov 17 10:34:02 2022 +0100

        Merge pull request #24186: Uses _all to follow alias/datastreams when estimating index size

    commit 79ba69483a84ea0278d0b0ddb141200739607c77
    Merge: 245fea9040 b7e860a762
    Author: Chamikara Jayalath <[email protected]>
    Date:   Wed Nov 16 20:47:40 2022 -0800

        Merge pull request #24218: Update Python wheel format for RC validation

    commit 245fea904014cd58d4148807463dbaa40000774c
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Date:   Wed Nov 16 18:12:33 2022 -0800

        Bump loader-utils from 1.4.1 to 1.4.2 in /sdks/python/apache_beam/runners/interactive/extensions/apache-beam-jupyterlab-sidepanel (#24191)

        Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

    commit e1de8e78deeb5d17617fda6591429eaaf8abb8a2
    Author: Yi Hu <[email protected]>
    Date:   Wed Nov 16 20:48:06 2022 -0500

        Fix PythonLint (#24219)

    commit b7e860a7621771c300dcec625655f87e62591323
    Author: Chamikara Jayalath <[email protected]>
    Date:   Wed Nov 16 17:28:31 2022 -0800

        updates

    commit c2feb09ea49dd815b69c65e531ce34128756d988
    Author: Chamikara Jayalath <[email protected]>
    Date:   Wed Nov 16 17:06:08 2022 -0800

        updates

    commit ce8d618c77d23e20a1ddb128bb8183048597d096
    Author: egalpin <[email protected]>
    Date:   Wed Nov 16 16:43:57 2022 -0800

        Adds test for following aliases when estimating index size

    commit 959719d01c627328c0ca2849d2b7e2c9b322d4d1
    Author: Chamikara Jayalath <[email protected]>
    Date:   Wed Nov 16 15:16:06 2022 -0800

        Temporary update Python RC validation job

    commit b952b41788acc20edbe5b75b2196f30dbf8fdeb0
    Author: Yi Hu <[email protected]>
    Date:   Wed Nov 16 14:18:12 2022 -0500

        Python TextIO Performance Test (#23951)

        * Python TextIO Performance Test

        * Add filebasedio_perf_test module for unified test framework for
          Python file-based IOs

        * Fix MetricsReader publishes metrics duplicately if more than one
          load test declared. This is because MetricsReader.publishers was
          static class variable

        * Fix pylint

        * Distribute Python performance tests random time at a day instead of all at 3PM

        * Add information about length conversion

    commit 017f2cbde124af40a43be99ec88289fcf63c1c95
    Merge: fef8acdbc0 88dba4f494
    Author: Chamikara Jayalath <[email protected]>
    Date:   Wed Nov 16 10:39:52 2022 -0800

        Merge pull request #24187: Add a reference to Java RunInference example

    commit fef8acdbc0ecbcc85b49144adaf8830e3bc6b2de
    Merge: 6e9187e67e ead245539d
    Author: Ahmet Altay <[email protected]>
    Date:   Wed Nov 16 10:24:53 2022 -0800

        Merge pull request #24199 from Laksh47/issue#24196

        refs: issue-24196, fix broken hyperlink

    commit 6e9187e67e1bd8f73997f437f0ed4c29880ed73b
    Author: Darkhan Nausharipov <[email protected]>
    Date:   Wed Nov 16 22:33:50 2022 +0600

        [Tour of Beam] [Frontend] Content tree URLs (#23776)

        * Content tree navigation (#23593)

        Unit content navigation (#23593)

        Update URL on node click (#23593)

        Active unit color (#23593)

        removeListener in unit (#23593)

        First unit is opened on group title click (#23593)

        WIP by Alexey Inkin (#23593)

        selectedUnitColor (#23593)

        Unit borderRadius (#23593)

        RegExp todo (#23593)

        added referenced collection package to remove warning (#23593)

        small refinement (#23593)

        expand on group tap, padding, openNode (#23593)

        group expansion bug fix (#23593)

        selected & unselected progress indicators (#23593)

        * AnimatedBuilders instead of StatefulWidgets in unit & group (#23593)

        * fixed _getNodeAncestors (#23593)

        * get sdkId (#23593)

        * addressing comments (#23593)

        * sdkId getter & StatelessExpansionTile (#23593)

        * expand & collapse group (#23593)

        * StatelessExpansionTile (#23593)

        * license (#23593)

        * ValueChanged and ValueKey in StatelessExpansionTile (#23593)

        Co-authored-by: darkhan.nausharipov <[email protected]>
        Co-authored-by: Alexey Inkin <[email protected]>

    commit b33fac2aa533d77cfa47f88466c8cd6bd3f3e864
    Author: Bruno Volpato <[email protected]>
    Date:   Wed Nov 16 10:51:11 2022 -0500

        Use only ValueProviders in SpannerConfig (#24156)

    commit 5f013ab6567ec75b460b2081d7f89d332320caff
    Author: Robert Burke <[email protected]>
    Date:   Wed Nov 16 07:23:10 2022 -0800

        revert upgrade to go 1.19 for action unit tests (#24189)

    commit 9337f4dbecc929886f8559949a082a649fd9d1bb
    Author: Yi Hu <[email protected]>
    Date:   Wed Nov 16 10:18:42 2022 -0500

        Fix Python PostCommit Example CustomPTransformIT on portable (#24159)

        * Fix Python PostCommit Examples on portable

        * Fix custom_ptransform pipeline options gets modified

        * Specify flinkConfDir

    commit ead245539d01dec0f3e08699c1e1cc6777a5ef0e
    Author: Laksh <[email protected]>
    Date:   Wed Nov 16 09:32:46 2022 -0500

        refs: issue-24196, fix broken hyperlink

    commit e83a996d4374d467d95bcfad7166905622ec615c
    Merge: 2fc56ec663 ffdee0b6ed
    Author: Jan Lukavský <[email protected]>
    Date:   Wed Nov 16 15:15:31 2022 +0100

        Merge pull request #24192: Re-use serializable pipeline options when already available.

    commit ffdee0b6edb8638c78a65ec85c727ea5dde1cb2f
    Author: Jozef Vilcek <[email protected]>
    Date:   Mon Nov 14 16:48:18 2022 +0100

        Re-use serializable pipeline options when already available (#24192)

    commit 88dba4f494829b2b3530b767fb8c5252e0d2ba44
    Author: Chamikara Jayalath <[email protected]>
    Date:   Tue Nov 15 16:21:22 2022 -0800

        Add a reference to Java RunInference example

    commit 2fc56ec663e335cfcf37dc57d471f79b601414f4
    Merge: f763186987 83f1bc19b9
    Author: Kenn Knowles <[email protected]>
    Date:   Tue Nov 15 16:16:47 2022 -0800

        Merge pull request #24142: Fix arguments to checkState in BatchViewOverrides

    commit f763186987c00ba1d26efdc35406436a1fa69a9a
    Merge: c2bc2135e9 0d7ca04182
    Author: Ning Kang <[email protected]>
    Date:   Tue Nov 15 15:25:20 2022 -0800

        Addresses #24161 Updated README of Interactive Beam

    commit c2bc2135e9bce715990a5d5551e2bc2dc0311da4
    Author: Doug Judd <[email protected]>
    Date:   Tue Nov 15 14:48:26 2022 -0800

        Strip FGAC database role from changestreams metadata requests (#24177)

        Co-authored-by: Doug Judd <[email protected]>

    commit af637974f96ad1b5110d7dea3f9a26c68e19a51b
    Author: Jack McCluskey <[email protected]>
    Date:   Tue Nov 15 17:16:43 2022 -0500

        Add custom inference function support to the PyTorch model handler (#24062)

        * Initial type def and function signature

        * [Draft] Add custom inference fn support to Pytorch Model Handler

        * Formatting

        * Split out default

        * Remove Keyed version for testing

        * Move device optimization

        * Make default available for import, add to test classes

        * Remove incorrect default from keyed test

        * Keyed impl

        * Fix device arg

        * custom inference test

        * formatting

        * Add helpers to define custom inference functions using model methods

        * Trailing whitespace

        * Unit tests

        * Fix incorrect getattr syntax

        * Type typo

        * Fix docstring

        * Fix keyed helper, add basic generate route

        * Modify generate() to be different than forward()

        * formatting

        * Remove extra generate() def

    commit a014637106970a0a0e9eb7944aa5caf79fa5fd37
    Author: egalpin <[email protected]>
    Date:   Tue Nov 15 13:57:54 2022 -0800

        Uses _all to follow alias/datastreams when estimating index size

        Fixes #24117

    commit 0d7ca041823bc2b09f76f86fdfd1d0b9508c9c88
    Author: Ning Kang <[email protected]>
    Date:   Tue Nov 15 13:57:27 2022 -0800

        Minor update

    commit e8fc759d756f4a987e41d2b9da56b906a6cd7736
    Author: Ning Kang <[email protected]>
    Date:   Tue Nov 15 13:52:18 2022 -0800

        Updated README of Interactive Beam

        Removed deprecated cache_dir runner param in favor of the cache_root global option.

    commit 08d5f72e5f35d41f3e9fa9fe799caea6bed1b7a7
    Author: Anand Inguva <[email protected]>
    Date:   Tue Nov 15 16:34:21 2022 -0500

        [Python]Support pipe operator as Union (PEP -604) (#24106)

        Fixes https://github.com/apache/beam/issues/21972

    commit 526e7a58b62682582c27173ab21ed8667ddab766
    Author: Scott Strong <[email protected]>
    Date:   Tue Nov 15 16:26:45 2022 -0500

        Using Teardown context instead of deprecated finalize (#24180)

        * Using Teardown context instead of deprecated finalize

        * making function public

        Co-authored-by: Scott Strong <[email protected]>

    commit fb4d1d4dea7b26ed538a9f6aca0ed41e8c300e37
    Author: Danny McCormick <[email protected]>
    Date:   Tue Nov 15 16:25:22 2022 -0500

        Fix broken json for notebook (#24183)

    commit f98db2008a97f4546d036ddf0dddfee8c87eb58a
    Author: Robert Burke <[email protected]>
    Date:   Tue Nov 15 12:49:23 2022 -0800

        Update automation to use Go 1.19 (#24175)

        Co-authored-by: lostluck <[email protected]>

    commit e5f58504eef1fdeebe0402cda8a2df259169c704
    Author: Brian Hulette <[email protected]>
    Date:   Tue Nov 15 12:25:13 2022 -0800

        Add error reporting for BatchConverter match failure (#24022)

        * add error reporting for BatchConverters

        * Test pytorch

        * Finish up torch tests

        * yapf

        * yapf

        * Remove else

    commit 3037747f66f0d71d65b6c65745b4f8942c22f05a
    Author: Danny McCormick <[email protected]>
    Date:   Tue Nov 15 14:13:04 2022 -0500

        Fix broken notebook (#24179)

    commit b2b1c739ce37690923891934ee317f799db937a2
    Author: MakarkinSAkvelon <[email protected]>
    Date:   Tue Nov 15 21:53:06 2022 +0500

        [Playground] Move Playground in GKE and Infrastructure change (#23928)

        * changes to updated master branch

        * Change workflow

        * ingress changes

        * Certificate was added

        * Updates for cloud build backend

        * Update main.tf

        * Create main.tf

        * Create variables.tf

        * Update variables.tf

        * Update main.tf

        * Update variables.tf

        * Update main.tf

        * Create output.tf

        * Update output.tf

        * Update output.tf

        * Update main.tf

        * Update build.gradle.kts

        * Update output.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update variables.tf

        * Update main.tf

        * Update variables.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update variables.tf

        * Update main.tf

        * Update variables.tf

        * Update main.tf

        * Update variables.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update main.tf

        * Update output.tf

        * Update main.tf

        * Update main.tf

        * Update output.tf

        * Create variables.tf

        * Update main.tf

        * Update main.tf

        * Delete playground/terraform/infrastructure/cluddns directory

        * Update main.tf

        * Update output.tf

        * Update output.tf

        * Update build.gradle.kts

        * Update build.gradle.kts

        * Update build.gradle.kts

        * Update build.gradle.kts

        * Update build.gradle.kts

        * Update build.gradle.kts

        * Update README.md

        * Update README.md

        * helm folder name was changed

        * Update README.md

        * Update build.gradle.kts

        * Update build.gradle.kts

        * Update build.gradle.kts

        * Updates to readme

        * Fix DNS name

        * HelmChart was changed

        * Some workflows were changed

        * Remove unused file

        * playground-examples return

        * add license information

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * remove "stg" folder

        * Update README.md

        * Remove unused files

        * DNS Removed

        * var name changed

        * remove DNSName from var file

        * 1

        * Clear terraform

        * remove unused records

        * gradle check

        * grade last change

        * issue fix

        * fix

        * 1

        * run

        * test

        * Index creation for Gradle

        * Add IndexCreation in gradle

        * Update README.md

        * Update README.md

        * Fix names for Frontend

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Update README.md

        * Redis fix

        * services fix

        * Update variables.tf

        * change order in gradle

        * Fix Config.g.dart file issue

        * Update README.md

        * Playground workflow update

        Co-authored-by: Sergey Makarkin <[email protected]>
        Co-authored-by: Sergey Makarkin <[email protected]>
        Co-authored-by: ruslan-ikhsan <[email protected]>
        Co-authored-by: Alex Kosolapov <[email protected]>

    commit 85df5f2eb2f299e28b36be0cce7b9c19d62124da
    Author: Yi Hu <[email protected]>
    Date:   Tue Nov 15 11:38:13 2022 -0500

        Eliminate CalciteUtil.CharType logical type (#24013)

        * Eliminate CalciteUtils.CharType logical type

        * Replace CalciteUtils.CharType to String
          Note that CalciteUtils still omits the precision of BINARY/VARBINARY/CHAR/VARCHAR
          as what it originally did. Support of the precision of these calcite types involves
          make use of making use of the overload method RelDataTypeFactory.createSqlType(var1, var2).

        * Replace every reference of CalciteUtil.CharType to generic
          PassThroughLogicalType check

        * Add TODO to Support sql types with arguments

        * Use VariableString in LogicalTypeTestCase

    commit f349f41010c5b238ff6020f7de718f938eef3c5e
    Author: alexeyinkin <[email protected]>
    Date:   Tue Nov 15 20:04:01 2022 +0400

        Configure flutter_code_editor options with Hugo shortcode (#23926) (#24031)

        * Configure flutter_code_editor options with Hugo shortcode (#23926)

        * Minor fixes (#23926)

        * Refactor after review (#23926)

    commit 0f4ca6363b3ce0e5de3ad36517bb406aa6391a18
    Author: Rebecca Szper <[email protected]>
    Date:   Tue Nov 15 06:10:13 2022 -0800

        Editorial review of the ML notebooks. (#24125)

        * Editorial review of the ML notebooks.

        * Editorial review of the ML notebooks.

        * Editorial review of the ML notebooks.

        * Update examples/notebooks/beam-ml/custom_remote_inference.ipynb

        Co-authored-by: Danny McCormick <[email protected]>

        * Updating based on feedback

        * Update examples/notebooks/beam-ml/run_inference_sklearn.ipynb

        Co-authored-by: Danny McCormick <[email protected]>

        * Update examples/notebooks/beam-ml/run_inference_tensorflow.ipynb

        Co-authored-by: Danny McCormick <[email protected]>

        * Update examples/notebooks/beam-ml/run_inference_tensorflow.ipynb

        Co-authored-by: Danny McCormick <[email protected]>

        * Update examples/notebooks/beam-ml/run_inference_tensorflow.ipynb

        Co-authored-by: Danny McCormick <[email protected]>

        * Updating based on feedback

        Co-authored-by: Danny McCormick <[email protected]>

    commit 5bd34ede026253326ebff1a7e4f9edb5f71b4a2c
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Date:   Tue Nov 15 07:17:28 2022 -0500

        Bump github.com/aws/aws-sdk-go-v2/feature/s3/manager in /sdks (#24131)

        Bumps [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) from 1.3.2 to 1.11.39.
        - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
        - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
        - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.3.2...feature/s3/manager/v1.11.39)

        ---
        updated-dependencies:
        - dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager
          dependency-type: direct:production
          update-type: version-update:semver-minor
        ...

        Signed-off-by: dependabot[bot] <[email protected]>

        Signed-off-by: dependabot[bot] <[email protected]>
        Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

    commit 2ee809fa0ca7689dd0279e186ebc02d9569a8429
    Merge: e3b9bdb2e6 563c66d6fd
    Author: Alexey Romanenko <[email protected]>
    Date:   Tue Nov 15 11:01:14 2022 +0100

        Merge pull request #23065: [Website] Update copy icon styles

    commit e3b9bdb2e607d85a4017ba7839000e92a0ad83c4
    Author: Moritz Mack <[email protected]>
    Date:   Tue Nov 15 10:40:50 2022 +0100

        [Dockerized Jenkins] Fix build of dockerized jenkins (fixes #24053) (#24054)

    commit faaac2ab6e010374cb2be0e95a5dd345836a2a2c
    Author: Moritz Mack <[email protected]>
    Date:   Tue Nov 15 10:38:59 2022 +0100

        [Dockerized Jenkins] Update README how to use local repo (#24055)

    commit 689e70b5131620540faf52e2f1e2dca7a36f269d
    Author: Damon <[email protected]>
    Date:   Mon Nov 14 17:34:29 2022 -0800

        Implement embedded WebAssembly example (#24081)

    commit e1bf6c42950e8013f35e35fb9fee8017e01e5010
    Merge: eddac84126 10337d2868
    Author: Robert Bradshaw <[email protected]>
    Date:   Mon Nov 14 15:22:14 2022 -0800

        Merge pull request #24160 Rename the test_splits flag to direct_test_splits.

    commit eddac841261228a2c63fa9b225c520ae0f853806
    Author: Pablo <[email protected]>
    Date:   Mon Nov 14 15:05:05 2022 -0800

        More dataset templates to clean up (#24162)

    commit 2adb68bd12743566cc89b596bf204d7c807eb62d
    Author: Pablo <[email protected]>
    Date:   Mon Nov 14 13:28:13 2022 -0800

        Adding a quickstart to README for the TS SDK (#23509)

        * More of a quickstart for the TS SDK

        * Update sdks/typescript/README.md

        Co-authored-by: Danny McCormick <[email protected]>

        * Update sdks/typescript/README.md

        Co-authored-by: Danny McCormick <[email protected]>

        Co-authored-by: Danny McCormick <[email protected]>

    commit 10337d28685ad5712e2ad8608977ec5c5e0e6b6b
    Author: Robert Bradshaw <[email protected]>
    Date:   Mon Nov 14 12:46:32 2022 -0800

        Rename the test_splits flag to direct_test_splits.

        This avoids possible flag conflicts.

    commit 48c70cc30742b45b17a1d18ece2f0d079bee3915
    Author: arne-alex <[email protected]>
    Date:   Mon Nov 14 21:33:02 2022 +0100

        Merge pull request #23333: Track time on Cloud Dataflow streaming data reads and export via heartbeats

    commit 9c83de646ab52bd0b05e3346190dd55cd68b2a8b
    Author: Johanna Öjeling <[email protected]>
    Date:   Mon Nov 14 21:19:44 2022 +0100

        Add more tests for S3 filesystem (#24138)

    commit 9e9c6d797ba52b460f83131431c8e53aebbbc9ac
    Merge: d5d76b9745 c600444e1d
    Author: Ning Kang <[email protected]>
    Date:   Mon Nov 14 12:06:15 2022 -0800

        Merge pull request #24029 from apache/dependabot/npm_and_yarn/sdks/python/apache_beam/runners/interactive/extensions/apache-beam-jupyterlab-sidepanel/loader-utils-1.4.1

        Bump loader-utils from 1.4.0 to 1.4.1 in /sdks/python/apache_beam/runners/interactive/extensions/apache-beam-jupyterlab-sidepanel

    commit d5d76b974592d45de368ab641647ca5cc4ec12ec
    Author: Yi Hu <[email protected]>
    Date:   Mon Nov 14 15:03:28 2022 -0500

        Support SqlTypes Date and Timestamp (MicrosInstant) in AvroUtils (#23969)

        * Support SqlTypes Date and Timestamp (MicrosInstant) in AvroUtils

        * Add TODO about java.time migration

    commit 330cc2010c9f4a2d4e30318bf50a4109ec1cd392
    Author: Pablo <[email protected]>
    Date:   Mon Nov 14 12:02:10 2022 -0800

        Cleanup stale BQ datasets (#24158)

        * Cleanup stale BQ datasets

        * addressing comments

    commit 4a044999b8ed4bcd41f816f3a23ccb5da00c4c38
    Merge: e563b9dd2f 5bd75c25de
    Author: Heejong Lee <[email protected]>
    Date:   Mon Nov 14 11:16:00 2022 -0800

        Merge pull request #24076 from chamikaramj/multilang_java_updates

        Updates Multi-lang Java quickstart

    commit e563b9dd2f3aa0484e6cdc08869991b5e438023e
    Author: Evgeny Antyshev <[email protected]>
    Date:   Mon Nov 14 20:56:35 2022 +0300

        [Tour Of Beam] verify that unit exists when saving progress (#24118)

        * AIO

        * Update learning/tour-of-beam/backend/integration_tests/auth_test.go

        Co-authored-by: Danny McCormick <[email protected]>

        * nit

        Co-authored-by: Danny McCormick <[email protected]>

    commit 774923e0dd089de870bfa5c77063ae2b28f79347
    Merge: 71785de528 1ad0cbc445
    Author: Kenn Knowles <[email protected]>
    Date:   Mon Nov 14 09:52:26 2022 -0800

        Merge pull request #24141: Fix checkArgument format in GcsPath

    commit 71785de52864313c2e3b14fe72a2a63281343617
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Date:   Mon Nov 14 11:54:37 2022 -0500

        Bump github.com/aws/aws-sdk-go-v2/config from 1.17.10 to 1.18.0 in /sdks (#24151)

        Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.17.10 to 1.18.0.
        - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
        - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
        - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.17.10...config/v1.18.0)

        ---
        updated-dependencies:
        - dependency-name: github.com/aws/aws-sdk-go-v2/config
          dependency-type: direct:production
          update-type: version-update:semver-minor
        ...

        Signed-off-by: dependabot[bot] <[email protected]>

        Signed-off-by: dependabot[bot] <[email protected]>
        Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

    commit 50d591d6cb3e799bee4e29dfc593c693a86e6276
    Author: Bruno Volpato <[email protected]>
    Date:   Mon Nov 14 11:50:01 2022 -0500

        Change DataflowBatchWorkerHarness doWork error level to INFO (#24135)

    commit 5a72696bfda09fdb905ba8e58b636f8494ef955f
    Merge: ee0a5836d6 0633fe9634
    Author: Kenn Knowles <[email protected]>
    Date:   Mon Nov 14 08:12:12 2022 -0800

        Merge pull request #24149: Remove extraneous jetbrains annotation

    commit ee0a5836d69b776834eb3bd9b2bd02eb5252c333
    Merge: d001a69e1a 137799672e
    Author: Kenn Knowles <[email protected]>
    Date:   Mon Nov 14 08:11:00 2022 -0800

        Merge pull request #24132: Fix checkArgument format string in AvroIO

    commit d001a69e1a58701d6ed4fcb5e3fb7a0921301dad
    Author: Yi Hu <[email protected]>
    Date:   Mon Nov 14 10:56:54 2022 -0500

        Test Dataproc 2.1 with Flink load tests (#24129)

        * Test Dataproc 2.1 with Flink load tests

        * Minor fix flink_cluster script

    commit caabd9be52887ad70c8a4269395c893811ac6a84
    Author: Israel Herraiz <[email protected]>
    Date:   Mon Nov 14 16:03:39 2022 +0100

        Make MonotonicWatermarkEstimator work like its Java SDK equivalent (#24146)

        * Make MonotonicWatermarkEstimator work like its Java SDK equivalent

        The current implementation of MonotonicWatermarkEstimator raises an exception
        with late messages, which makes the watermark estimator barely usable in real
        world scenarios.

        This PR fixes #20041 by making this watermark estimator work like its Java SDK
        equivalent (`WatermarkEstimators.MonotonicallyIncreasing`).

        * Update unit tests too

        * Make linter happy

    commit 451f6b3e7f58d0a3782ad942c6a1fd9f63932024
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Date:   Mon Nov 14 09:48:23 2022 -0500

        Bump golang.org/x/net from 0.1.0 to 0.2.0 in /sdks (#24153)

        Bumps [golang.org/x/net](https://github.com/golang/net) from 0.1.0 to 0.2.0.
        - [Release notes](https://github.com/golang/net/releases)
        - [Commits](https://github.com/golang/net/compare/v0.1.0...v0.2.0)

        ---
        updated-dependencies:
        - dependency-name: golang.org/x/net
          dependency-type: direct:production
          update-type: version-update:semver-minor
        ...

        Signed-off-by: dependabot[bot] <[email protected]>

        Signed-off-by: dependabot[bot] <[email protected]>
        Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

    commit 2bb03d62e2d7dc2d8e39040fc9adebccbde74fde
    Merge: 4e39ef2041 623083cd0a
    Author: Alexey Romanenko <[email protected]>
    Date:   Mon Nov 14 15:01:13 2022 +0100

        Merge pull request #24000: [Website] Change headers size from h4,h3 to h2

    commit 563c66d6fd32165da14a07747f2764c17a5d24ea
    Author: bulat safiullin <[email protected]>
    Date:   Wed Sep 7 18:28:42 2022 +0600

        [Website] update pre tag copy link styles #23064

    commit 4e39ef20410ee51c6040317bcd60171e64c5171f
    Merge: 223768f782 105ed6fedc
    Author: Alexey Romanenko <[email protected]>
    Date:   Mon Nov 14 10:55:33 2022 +0100

        Merge pull request #24115: [Website] update go-dependencies.md java-dependencies.md links

    commit 223768f782f771f0033b8d0686d86cf4c71fad75
    Merge: aa0a35dabf a9da2abee6
    Author: Kenn Knowles <[email protected]>
    Date:   Sun Nov 13 18:53:13 2022 -0800

        Merge pull request #24136: Fix checkArgument format string in ExecutionStateTracker

    commit 0633fe9634fe61df7cbc0ecac205d81124fd504a
    Author: Kenneth Knowles <[email protected]>
    Date:   Sat Nov 12 15:15:16 2022 -0800

        Remove extraneous jetbrains annotation

    commit 83f1bc19b95935e60ca1f4027d4b60c7e738a84a
    Author: Kenneth Knowles <[email protected]>
    Date:   Sat Nov 12 14:16:09 2022 -0800

        Fix arguments to checkState in BatchViewOverrides

    commit 1ad0cbc44594d8405bf4b07a126265238013a02a
    Author: Kenneth Knowles <[email protected]>
    Date:   Sat Nov 12 13:41:02 2022 -0800

        Fix checkArgument format in GcsPath

    commit aa0a35dabf9c2a0d9822faff06d939d9a77a3ab6
    Author: Kenn Knowles <[email protected]>
    Date:   Fri Nov 11 20:26:30 2022 -0800

        Fix checkArgument format string in TestStream (#24134)

    commit a9da2abee6455bc2cf0f18ba5f6cd7bbaeae669f
    Author: Kenneth Knowles <[email protected]>
    Date:   Fri Nov 11 16:54:27 2022 -0800

        Fix checkArgument format string in ExecutionStateTracker

    commit 369e2ba8622d3474c14c39b941b2c618842d1e47
    Author: Ryan Thompson <[email protected]>
    Date:   Fri Nov 11 19:46:07 2022 -0500

        Add a ValidatesContainer integration test for use_sibling_sdk_workers (#24099)

    commit 137799672eb559a7586262e6a8a73d1ab3580e44
    Author: Kenneth Knowles <[email protected]>
    Date:   Fri Nov 11 15:30:01 2022 -0800

        Fix checkArgument format string in AvroIO

    commit 5d2dbf957e4e82fb3980726940df02ac67e563cd
    Author: Anand Inguva <[email protected]>
    Date:   Fri Nov 11 15:57:28 2022 -0500

        Update staging of Python wheels (#24114)

        Fixes https://github.com/apache/beam/issues/24110

    commit c2021bee1eba0322b43c90841397859048296b21
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Date:   Fri Nov 11 15:33:14 2022 -0500

        Bump google.golang.org/api from 0.102.0 to 0.103.0 in /sdks (#24049)

        Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.102.0 to 0.103.0.
        - [Release notes](https://github.com/googleapis/google-api-go-client/releases)
        - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
        - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.102.0...v0.103.0)

        ---
        updated-dependencies:
        - dependency-name: google.golang.org/api
          dependency-type: direct:production
          update-type: version-update:semver-minor
        ...

        Signed-off-by: dependabot[bot] <[email protected]>

        Signed-off-by: dependabot[bot] <[email protected]>
        Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

    commit 6557c91c79480b9d90573d52d257a11c2b160196
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Date:   Fri Nov 11 11:47:12 2022 -0800

        Bump github.com/aws/aws-sdk-go-v2/service/s3 in /sdks (#24112)

        Bumps [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) from 1.29.1 to 1.29.2.
        - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
        - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
        - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.29.1...service/s3/v1.29.2)

        ---
        updated-dependencies:
        - dependency-name: github.com/aws/aws-sdk-go-v2/service/s3
          dependency-type: direct:production
          update-type: version-update:semver-patch
        ...

        Signed-off-by: dependabot[bot] <[email protected]>

        Signed-off-by: dependabot[bot] <[email protected]>
        Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

    commit 96f9da1ab652156cd143d57e3aa3d94836338f2b
    Author: Yi Hu <[email protected]>
    Date:   Fri Nov 11 14:34:22 2022 -0500

        More cleanup containers (#24105)

        * More cleanup containers

        * prebuilt_beam_sdk/beam_python_prebuilt_sdk no longer exists in gcr.io
          Add correct paths to cleanup

        * Bump grace time to 15 days

        * Run job daily as in code comment

        * Set grace period to 30 days

    commit 836766ddb83d37463e4b036f156b8d7e15e3864b
    Author: Ritesh Ghorse <[email protected]>
    Date:   Fri Nov 11 14:30:30 2022 -0500

        upgrade testcontainer dependency (#24123)

    commit 9fcd20c3712536f2d4580beead678cdbb6fd4746
    Author: Damon <[email protected]>
    Date:   Fri Nov 11 11:12:11 2022 -0800

        Implement PubsubRowToMessage transform (#23897)

        * Begin PubsubRowToMessage Impl

        * Complete working draft

        * Unit tests validate user and non-user fields

        * Finish tests on supporting methods

        * Pass checks before finalizing tests

        * WIP

        * fix timestamp

        * finalize tests

        * Finalize code comments

        * Clean up check findings

        * Add InputSchemaFactory

        * Patch code comment typo

    commit 3a6fcc1ca4d07a467464ed1214a94b5c9c147295
    Author: Evgeny Antyshev <[email protected]>
    Date:   Fri Nov 11 19:13:45 2022 +0300

        disable (#24121)

    commit 027fb142038b45c443d87af96cac082264c43188
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Date:   Fri Nov 11 10:26:23 2022 -0500

        Bump cloud.google.com/go/bigtable from 1.17.0 to 1.18.0 in /sdks (#24113)

        Bumps [cloud.google.com/go/bigtable](https://github.com/googleapis/google-cloud-go) from 1.17.0 to 1.18.0.
        - [Release notes](https://github.com/googleapis/google-cloud-go/releases)
        - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md)
        - [Commits](https://github.com/googleapis/google-cloud-go/compare/pubsub/v1.17.0...pubsub/v1.18.0)

        ---
        updated-dependencies:
        - dependency-name: cloud.google.com/go/bigtable
          dependency-type: direct:production
          update-type: version-update:semver-minor
        ...

        Signed-off-by: dependabot[bot] <[email protected]>

        Signed-off-by: dependabot[bot] <[email protected]>
        Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

    commit b2d28a64bb0837dd97e8be7f97f31f88d380f110
    Author: Danny McCormick <[email protected]>
    Date:   Fri Nov 11 08:45:14 2022 -0500

        Add TFX support in pydoc (#23960)

        * Add TFX support in pydoc

        * Wording

    commit 105ed6fedcb6ff33d4a43940c342a653e67cb25e
    Author: bulat safiullin <[email protected]>
    Date:   Thu Nov 10 17:47:54 2022 +0600

        [Website] update go-dependencies.md java-dependencies.md programming-guide.md links #24084

    commit 4b96193250a63b27721a8c5e1a3bd6ecff983093
    Author: Brian Hulette <[email protected]>
    Date:   Thu Nov 10 16:51:06 2022 -0800

        Remove TheNeuralBit from the pool of Python reviewers (#24108)

    commit 8f8f089a5f565f179905984cef3522a0577d9219
    Author: Sanil Jain <[email protected]>
    Date:   Thu Nov 10 16:47:31 2022 -0800

        Wire SamzaPipelineOptions to Exeption listener interface (#24109)

    commit b3186ba91f9bb22764d47b78eb2b7ff017080f75
    Author: Ahmed Abualsaud <[email protected]>
    Date:   Thu Nov 10 18:04:50 2022 -0500

        Support using BigQueryIO Storage Read API with SchemaTransforms (#23827)

        * support schema transform for bq direct read method

        * use vendor Strings import

        * add BigQueryServices argument to config object

        * suppress nullability errors

        * add package-info.java file to providers subdirectory

        * removing accidentally created file

        * added documentation and moved configuration filclass into provider class

        * validate config params before expansion. config has a validaate me method

        * updated URN identifier to follow standards

    commit a4a94da1936d8cd2f8d1145fd2e8329fe06a2990
    Author: Oleh Borysevych <[email protected]>
    Date:   Fri Nov 11 00:28:43 2022 +0200

        fixing linter error (#24104)

    commit 156a6099d71a155c3379340a0b98256306e1755e
    Author: Danny McCormick <[email protected]>
    Date:   Thu Nov 10 17:26:15 2022 -0500

        Add blog post on new ML resources (#24071)

        * Create ml-resources.md

        * Add ensemble notebook image

        * Add image link

        * Fix image link

        * Add ml-landing page image

        * Add image + move around

        * Add paragraph on upcoming changes

        * Remove bad whitespace

    commit 38742d40c895f5d38ee6ee5eb328d11b3262307e
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Date:   Thu Nov 10 16:12:40 2022 -0500

        Bump github.com/aws/aws-sdk-go-v2/config from 1.5.0 to 1.17.10 in /sdks (#24080)

        Bumps [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) from 1.5.0 to 1.17.10.
        - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
        - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md)
        - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.5.0...config/v1.17.10)

        ---
        updated-dependencies:
        - dependency-name: github.com/aws/aws-sdk-go-v2/config
          dependency-type: direct:production
          update-type: version-update:semver-minor
        ...

        Signed-off-by: dependabot[bot] <[email protected]>

        Signed-off-by: dependabot[bot] <[email protected]>
        Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

    commit 92cef32915c40d353b51529a87d8f0131b0a3538
    Author: BjornPrime <[email protected]>
    Date:   Thu Nov 10 15:30:37 2022 -0500

        Num failed inferences (#23830)

        * created test_increment_num_failed_inferences and test_num_failed_inferences_no_failures

        * added assertRaises to test_increment_num_failed_inferences

        * added num_failed_inferences to _MetricsCollector

        * changed error handling and update() implementation

        * updated metric name in tests

        * removed unnecessary else blocking

        * removed unnecessary inference_args from test_increment_failed_batches_counter()

        * changed final test_increment_failed_batches_counter assertion

        * clarified error handling and updated failed_batches_counter initialization

        * decreased examples array length to 1 to ensure repeatability

        * troubleshooting tests

        * trying to get test_increment_failed_batches_counter to fail as expected

        * corrected assertion details

        * simplified assertRaises and added reminder comment to assertEqual counter

        * lint test

        * lint test passed, resetting pre-commit-config.yaml

        * fixed lingering linting issues

        * shortened comment line to comply with linting

        * formatter worked its magic

    commit 2341f61d48d838ddaf2e4fb990a49987244c3513
    Author: Evgeny Antyshev <[email protected]>
    Date:   Thu Nov 10 21:24:55 2022 +0300

        [Tour Of Beam] handle CORS pre-flight requests (#24083)

        * cors

        * README

        * nit

        * nit

        * -headers, -cache

        * allow-headers

        * +1h cache,comment

    commit 36b0c8f1a76865e4dc3b1eaec1566c3ef9fd4345
    Author: Evgeny Antyshev <[email protected]>
    Date:   Thu Nov 10 21:21:21 2022 +0300

        [Playground] update snippet by persistence_key (#24056)

        * proto

        * AIO

        * -frontend

        * testify

        * +license

        * -build

        * index

        * skipKey

        * Update playground/backend/internal/db/datastore/datastore_db.go

        Co-authored-by: Danny McCormick <[email protected]>

        Co-authored-by: Danny McCormick <[email protected]>

    commit df553d1a4c6c6cc9b37ada2a6c84c88d8aef38b9
    Author: Ahmed Abualsaud <[email protected]>
    Date:   Thu Nov 10 13:17:36 2022 -0500

        Add random string at the end of BigQuery query job name to make it resilient to retries (#24041)

        * add random string at the end of query job name

        * use deterministic temp table name

    commit e439f4120ef4c25aa36e5b03756dc7391bdbd211
    Author: Pablo <[email protected]>
    Date:   Thu Nov 10 10:06:26 2022 -0800

        Improving stale container cleanup script (#24040)

        * Improving stale container cleanup script

        * Avoid also latest image

        * Update .test-infra/tools/stale_dataflow_prebuilt_image_cleaner.sh

        Co-authored-by: Yi Hu <[email protected]>

        * Update .test-infra/tools/stale_dataflow_prebuilt_image_cleaner.sh

        Co-authored-by: Yi Hu <[email protected]>

        Co-authored-by: Yi Hu <[email protected]>

    commit 8d585242e158babd8dd2ca5a6d5a49d353be2935
    Author: Anand Inguva <[email protected]>
    Date:   Thu Nov 10 12:58:41 2022 -0500

        [Python]Set pickle library at the Pipeline creation stage (#24069)

        Fixes https://github.com/apache/beam/issues/21615

    commit 08b6a524fecc333a12ce42971733ef64ae7d02f1
    Author: Janek Bevendorff <[email protected]>
    Date:   Thu Nov 10 18:37:09 2022 +0100

        [BEAM-12792] Install pipline dependencies to temporary venv (#16658)

    commit 74f87b0282a23aa01ecb63288013311d207960aa
    Merge: 38a85b288a 383ea77bc9
    Author: Robert Bradshaw <[email protected]>
    Date:   Thu Nov 10 09:10:37 2022 -0800

        Merge pull request #23985 Support dynamic sharding in the worker.

    commit 38a85b288ad10171c444d4092eb969ca5de58af3
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Date:   Thu Nov 10 10:39:15 2022 -0500

        Bump github.com/aws/aws-sdk-go-v2/service/s3 in /sdks (#24077)

        Bumps [github.com/aws/aws-sdk-go-v2/service/s3](https://github.com/aws/aws-sdk-go-v2) from 1.11.1 to 1.29.1.
        - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases)
        - [Changelog](https://github.com/aws/aws-sdk-g…
  • Loading branch information
nausharipov committed Mar 28, 2023
1 parent 53a36cb commit fcf7f46
Show file tree
Hide file tree
Showing 54 changed files with 1,616 additions and 575 deletions.
3 changes: 3 additions & 0 deletions learning/tour-of-beam/frontend/assets/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ pages:
showSolution: Show the solution
solution: Solution
solveYourself: Before revealing the solution, try solving the challenge on your own. Remember, the more you practice, the better you will become. Give it a shot and see how far you can get.
example: Example
myCode: My code
saving: Saving...
summaryTitle: Table of Contents

dialogs:
Expand Down
9 changes: 6 additions & 3 deletions learning/tour-of-beam/frontend/lib/cache/unit_content.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ class UnitContentCache extends Cache {
final _unitContents = <String, Map<String, UnitContentModel>>{};
final _futures = <String, Map<String, Future<UnitContentModel>>>{};

UnitContentModel? getUnitContent(String sdkId, String unitId) {
Future<UnitContentModel> getUnitContent(
String sdkId,
String unitId,
) async {
final future = _futures[sdkId]?[unitId];
if (future == null) {
unawaited(_loadUnitContent(sdkId, unitId));
await _loadUnitContent(sdkId, unitId);
}

return _unitContents[sdkId]?[unitId];
return _unitContents[sdkId]![unitId]!;
}

Future<UnitContentModel> _loadUnitContent(String sdkId, String unitId) async {
Expand Down
136 changes: 104 additions & 32 deletions learning/tour-of-beam/frontend/lib/cache/unit_progress.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,92 @@

import 'dart:async';

import 'package:flutter/foundation.dart';
import 'package:get_it/get_it.dart';
import 'package:playground_components/playground_components.dart';

import '../auth/notifier.dart';
import '../enums/snippet_type.dart';
import '../enums/unit_completion.dart';
import '../models/unit_progress.dart';
import '../repositories/client/client.dart';
import '../repositories/models/get_user_progress_response.dart';
import '../repositories/user_progress/abstract.dart';
import '../repositories/user_progress/cloud.dart';
import '../repositories/user_progress/hive.dart';
import '../state.dart';
import 'cache.dart';

class UnitProgressCache extends Cache {
UnitProgressCache({required super.client});
class UnitProgressCache extends ChangeNotifier {
final _cloudUserProgressRepository = CloudUserProgressRepository(
client: GetIt.instance.get<TobClient>(),
);
final _localStorageUserProgressRepository = HiveUserProgressRepository();

AbstractUserProgressRepository _getUserProgressRepository() {
if (isAuthenticated) {
return _cloudUserProgressRepository;
}
return _localStorageUserProgressRepository;
}

Future<GetUserProgressResponse?>? _future;

var _unitProgress = <UnitProgressModel>[];
final _unitProgressByUnitId = <String, UnitProgressModel>{};

final _completedUnitIds = <String>{};
final _updatingUnitIds = <String>{};
Future<GetUserProgressResponse?>? _future;

bool get isAuthenticated =>
GetIt.instance.get<AuthNotifier>().isAuthenticated;

Future<void> loadUnitProgress(Sdk sdk) async {
_future = _getUserProgressRepository().getUserProgress(sdk);
final result = await _future;

_unitProgressByUnitId.clear();
if (result != null) {
_unitProgress = result.units;
for (final unitProgress in _unitProgress) {
_unitProgressByUnitId[unitProgress.id] = unitProgress;
}
} else {
_unitProgress = [];
}
notifyListeners();
}

List<UnitProgressModel> _getUnitProgress() {
if (_future == null) {
unawaited(loadUnitProgress(GetIt.instance.get<AppNotifier>().sdk!));
}
return _unitProgress;
}

// Completion

Future<void> completeUnit(String sdkId, String unitId) async {
try {
addUpdatingUnitId(unitId);
await _getUserProgressRepository().completeUnit(sdkId, unitId);
} finally {
await loadUnitProgress(GetIt.instance.get<AppNotifier>().sdk!);
clearUpdatingUnitId(unitId);
}
}

Set<String> getUpdatingUnitIds() => _updatingUnitIds;

Set<String> getCompletedUnits() {
_completedUnitIds.clear();
for (final unitProgress in _getUnitProgress()) {
if (unitProgress.isCompleted) {
_completedUnitIds.add(unitProgress.id);
}
}
return _completedUnitIds;
}

void addUpdatingUnitId(String unitId) {
_updatingUnitIds.add(unitId);
notifyListeners();
Expand All @@ -52,6 +121,14 @@ class UnitProgressCache extends Cache {
return _getUnitCompletion(unitId) == UnitCompletion.uncompleted;
}

bool isUnitCompleted(String? unitId) {
return getCompletedUnits().contains(unitId);
}

String? getUnitSavedSnippetId(String? unitId) {
return _unitProgressByUnitId[unitId]?.userSnippetId;
}

UnitCompletion _getUnitCompletion(String unitId) {
final authNotifier = GetIt.instance.get<AuthNotifier>();
if (!authNotifier.isAuthenticated) {
Expand All @@ -66,38 +143,33 @@ class UnitProgressCache extends Cache {
return UnitCompletion.uncompleted;
}

bool isUnitCompleted(String? unitId) {
return getCompletedUnits().contains(unitId);
}
// Snippet

Future<void> updateCompletedUnits() async {
final sdkId = GetIt.instance.get<AppNotifier>().sdkId;
if (sdkId != null) {
await _loadCompletedUnits(sdkId);
}
bool hasSavedSnippet(String? unitId) {
return _unitProgressByUnitId[unitId]?.userSnippetId != null;
}

Set<String> getCompletedUnits() {
if (_future == null) {
unawaited(updateCompletedUnits());
}

return _completedUnitIds;
Future<void> saveSnippet({
required Sdk sdk,
required List<SnippetFile> snippetFiles,
required SnippetType snippetType,
required String unitId,
}) async {
await _getUserProgressRepository().saveUnitSnippet(
sdk: sdk,
snippetFiles: snippetFiles,
snippetType: snippetType,
unitId: unitId,
);
}

Future<void> _loadCompletedUnits(String sdkId) async {
_future = client.getUserProgress(sdkId);
final result = await _future;

_completedUnitIds.clear();
if (result != null) {
for (final unitProgress in result.units) {
if (unitProgress.isCompleted) {
_completedUnitIds.add(unitProgress.id);
}
}
}

notifyListeners();
Future<ExampleLoadingDescriptor> getSavedDescriptor({
required Sdk sdk,
required String unitId,
}) async {
return _getUserProgressRepository().getSavedDescriptor(
sdk: sdk,
unitId: unitId,
);
}
}
10 changes: 4 additions & 6 deletions learning/tour-of-beam/frontend/lib/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,17 @@

// TODO(alexeyinkin): Generate this file on deployment.

const _cloudFunctionsProjectRegion = 'us-central1';
const _cloudFunctionsProjectId = 'tour-of-beam-2';
const _cloudFunctionsProjectRegion = 'us-east1';
const _cloudFunctionsProjectId = 'river-key-378010';
const cloudFunctionsBaseUrl = 'https://'
'$_cloudFunctionsProjectRegion-$_cloudFunctionsProjectId'
'.cloudfunctions.net';

// Copied from Playground's config.g.dart

const String kAnalyticsUA = 'UA-73650088-2';
const String kApiClientURL =
'https://backend-router-beta-dot-apache-beam-testing.appspot.com';
const String kApiJavaClientURL =
'https://backend-java-beta-dot-apache-beam-testing.appspot.com';
const String kApiClientURL = 'https://router.play-dev.beam.apache.org';
const String kApiJavaClientURL = 'https://java.play-dev.beam.apache.org';
const String kApiGoClientURL =
'https://backend-go-beta-dot-apache-beam-testing.appspot.com';
const String kApiPythonClientURL =
Expand Down
28 changes: 28 additions & 0 deletions learning/tour-of-beam/frontend/lib/constants/hive_box_names.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import 'package:playground_components/playground_components.dart';

class HiveBoxNames {
static const unitProgress = 'unit_progress';
static const snippets = 'snippets';

static String getSdkBoxName(Sdk sdk, String boxName) {
return '${sdk.id}_$boxName';
}
}
1 change: 1 addition & 0 deletions learning/tour-of-beam/frontend/lib/constants/sizes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
class TobSizes {
static const double footerHeight = 35;
static const double authOverlayWidth = 260;
static const double hintPopupWidth = 510;
}

class ScreenSizes {
Expand Down
23 changes: 23 additions & 0 deletions learning/tour-of-beam/frontend/lib/enums/save_code_status.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

enum SaveCodeStatus {
error,
saved,
saving,
}
23 changes: 23 additions & 0 deletions learning/tour-of-beam/frontend/lib/enums/snippet_type.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

enum SnippetType {
original,
saved,
solution,
}
12 changes: 6 additions & 6 deletions learning/tour-of-beam/frontend/lib/firebase_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ class DefaultFirebaseOptions {
}

static const FirebaseOptions web = FirebaseOptions(
apiKey: 'AIzaSyBtAreurqJ5D4IK6cNisZh5dnDRKljbJAw',
authDomain: 'astest-369409.firebaseapp.com',
projectId: 'astest-369409',
storageBucket: 'astest-369409.appspot.com',
messagingSenderId: '534850967604',
appId: '1:534850967604:web:55c6af8da7940df1ddd261',
apiKey: 'AIzaSyD-yN7OO9xjPQ5M-SJug96M2EfHwvjzd1A"',
authDomain: 'river-key-378010.firebaseapp.com"',
projectId: 'us-east1-river-key-378010',
storageBucket: 'river-key-378010.appspot.com',
messagingSenderId: '11155893632',
appId: '1:11155893632:web:0154abc4765db232086565',
);
}
12 changes: 7 additions & 5 deletions learning/tour-of-beam/frontend/lib/locator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ void _initializeAuth() {
}

void _initializeCaches() {
GetIt.instance.registerSingleton<TobClient>(_client);
GetIt.instance.registerSingleton(ContentTreeCache(client: _client));
GetIt.instance.registerSingleton(SdkCache(client: _client));
GetIt.instance.registerSingleton(UnitContentCache(client: _client));
GetIt.instance.registerSingleton(UnitProgressCache(client: _client));
final client = CloudFunctionsTobClient();

GetIt.instance.registerSingleton<TobClient>(client);
GetIt.instance.registerSingleton(ContentTreeCache(client: client));
GetIt.instance.registerSingleton(SdkCache(client: client));
GetIt.instance.registerSingleton(UnitContentCache(client: client));
GetIt.instance.registerSingleton(UnitProgressCache());
}

void _initializeState() {
Expand Down
6 changes: 3 additions & 3 deletions learning/tour-of-beam/frontend/lib/models/unit_content.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion learning/tour-of-beam/frontend/lib/models/unit_progress.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ import 'package:json_annotation/json_annotation.dart';

part 'unit_progress.g.dart';

@JsonSerializable(createToJson: false)
@JsonSerializable()
class UnitProgressModel {
final String id;
final bool isCompleted;
final String? userSnippetId;

const UnitProgressModel({
required this.id,
required this.isCompleted,
required this.userSnippetId,
});

factory UnitProgressModel.fromJson(Map<String, dynamic> json) =>
_$UnitProgressModelFromJson(json);

Map<String, dynamic> toJson() => _$UnitProgressModelToJson(this);
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fcf7f46

Please sign in to comment.