Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GoogleCloudPlatform/getting-started-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: sinmetal/getting-started-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on May 13, 2018

  1. FirestoreでWatchするサンプルを追加した。

    だいぶ、ややこしい動きをするが、FirestoreのWatchを App Engine Standard for Java8 ではできるようだ
    ややこしい動きというのが、リクエストを超えて、Firestoreの接続情報を持ち続けること
    Watchを行うリクエストハンドラーを起動してから、15minほど経過したが、今もWatchし続けている
    そして、ややこしいのがログ出力だ。Watchしてるのも見るためにWatchした内容をログに出力しているが、ログが出て来るタイミングが、リクエストが来た時になってる
    Firestoreの内容が変わって、ログ出力が行われた状態で、適当にリクエストを送って、Cloud Loggingにログが出力されると、そこにまとめて出てくる
    sinmetal committed May 13, 2018
    Configuration menu
    Copy the full SHA
    1c62804 View commit details
    Browse the repository at this point in the history
Loading