Skip to content
Closed
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
c20d987
Update poll.js to include XML Header in fetch request
riathakkar Aug 30, 2024
5943a42
Updated Copyright headers
riathakkar Aug 30, 2024
37791ee
fix(gae): clean up copyright header
iennae Aug 31, 2024
92479b9
Added more comments on the function for clarity.
riathakkar Sep 5, 2024
eeca8d8
fix(generative-ai): Update comment in RAG API samples to specify opti…
holtskinner Aug 31, 2024
04f7ff7
fix: rasterio and update dependencies (#12538)
Aug 31, 2024
a756ddf
chore(automl): remove deprecated samples (#12546)
iennae Sep 1, 2024
67b069c
chore(deps): update dependency flask-cors to v5 (#12548)
renovate-bot Sep 1, 2024
1dc989b
feat: New text Generation Samples (#12543)
Thoughtseize1 Sep 3, 2024
0fd2df7
docs(samples): Update Vertex AI Gemini Grounding with new syntax from…
holtskinner Sep 3, 2024
c3ccea1
chore(automl): remove deprecated samples (#12545)
iennae Sep 3, 2024
9e30196
fix(automl): remove deprecated samples automl/vision_edge directory (…
iennae Sep 3, 2024
6e6d45a
chore(deps): update django (#12559)
glasnt Sep 4, 2024
67f7a60
chore(deps): bump cryptography in /compute/encryption (#12558)
dependabot[bot] Sep 4, 2024
0094847
refactor(speech): (set-5) Simplified next set of Speech Samples (#12533)
Thoughtseize1 Sep 4, 2024
395734a
feat: Batch created job with custom labels. 3 new samples (#12483)
Thoughtseize1 Sep 4, 2024
21055c3
fix: remove arbitrary equality comparisons (not supported by renovate…
glasnt Sep 4, 2024
acdee29
chore(deps): update google-cloud-translate to v3.16.0 (#12562)
glasnt Sep 4, 2024
9fe4c95
Fix script to pause/unpause DAGs in Composer env (#12563)
VladaZakharova Sep 5, 2024
c74c915
chore(deps): update dependency cloudevents to v1.11.0 (#12093)
renovate-bot Sep 5, 2024
6783e43
chore(deps): bump cryptography from 42.0.5 to 43.0.1 in /media_cdn (#…
dependabot[bot] Sep 5, 2024
4ce18d5
chore(deps): update dependency black to v24.8.0 (#12553)
renovate-bot Sep 5, 2024
b4adf6b
chore(deps): update dependency azure-storage-blob to v12.22.0 (#12552)
renovate-bot Sep 5, 2024
d20c976
chore(deps): update apache/beam_python3.11_sdk docker tag to v2.59.0 …
renovate-bot Sep 5, 2024
125446b
chore(deps): update dependency apache-airflow-providers-postgres to v…
renovate-bot Sep 5, 2024
5930d5d
feat: compute create reservation from template sample (#12541)
Sep 6, 2024
96dd0bd
chore: refactored samples, to make them follow copy-paste-run approac…
Sep 6, 2024
5456386
chore(deps): bump cryptography from 42.0.5 to 43.0.1 in /cloud-media-…
dependabot[bot] Sep 6, 2024
ca656c4
fix:added regional samples for SM (#12475)
vipul7499 Sep 7, 2024
f59f949
soft-delete-cost-analysis: fixing return type (#12062)
marcinlimanski Sep 10, 2024
3c0171f
chore(generativeai): Update the cache time to 2 hr (#12574)
msampathkumar Sep 11, 2024
1547ee8
chore: bootstrap AlloyDB folder (#12583)
enocom Sep 11, 2024
b05866a
docs(samples): add REST sample and test for Anti Money Laundering AI …
irataxy Sep 11, 2024
6d33c96
refactor: (GenAI) Reorganized Extensions Samples (Group A) (#12587)
Thoughtseize1 Sep 12, 2024
3247f92
refactor: (GenAI) Reorganized Embeddings Samples (Group A) (#12575)
Thoughtseize1 Sep 12, 2024
f0e7ed2
refactor: (GenAI) Reorganized Controlled Generation Samples (Group A)…
Thoughtseize1 Sep 12, 2024
ff6e76d
chore(deps): update apache/beam_python3.9_sdk docker digest to 6d8ad6…
renovate-bot Sep 12, 2024
7b85b71
chore(deps): update dependency datasets to v3 (#12582)
renovate-bot Sep 12, 2024
03cb897
chore(deps): bump cryptography from 42.0.5 to 43.0.1 in /iap (#12569)
dependabot[bot] Sep 12, 2024
b4e9f56
refactor: (GenAI) Improved Context Cache Samples (Group A) (#12571)
Thoughtseize1 Sep 12, 2024
e13155a
docs(samples): Add Dataflow snippet to read from multiple Kafka topic…
VeronicaWasson Sep 12, 2024
cd60c10
updates to list manipulation to ignore the header (#12590)
killkelleyr Sep 14, 2024
bf16b03
Simplified next set of Speech Samples (set-3) (#12158)
Thoughtseize1 Sep 17, 2024
1ed2365
docs(generativeai): update todo comments for quick start guide exampl…
msampathkumar Sep 17, 2024
abf3d3d
Update generate_self_signed_jwt.py (#12592)
riathakkar Sep 20, 2024
5c65a52
docs(samples): Added answer_query_sample.py (#12564)
holtskinner Sep 20, 2024
888f473
docs(samples): Created session_sample.py (#12568)
holtskinner Sep 20, 2024
a461e49
fix: (datastore) add imports to snippets (#12601)
daniel-sanche Sep 20, 2024
683f296
chore(deps): update dependency django to v4.2.16 (#12603)
renovate-bot Sep 23, 2024
5c41e47
refactor: (GenAI) Reorganized System Instructions Sample (Group C) (#…
Thoughtseize1 Sep 23, 2024
571d6e2
refactor: (GenAI) Reorganized Safety Sample (Group С) (#12614)
Thoughtseize1 Sep 23, 2024
8678ca6
refactor: (GenAI) Reorganized Function calling Samples (Group A) (#1…
Thoughtseize1 Sep 23, 2024
574cf10
refactor: (GenAI) Reorganized Reasoning Engine Samples (Group С) (#12…
Thoughtseize1 Sep 23, 2024
a8d058f
feat(generativeai): New Samples for Model Tuning folder (#12605)
Thoughtseize1 Sep 23, 2024
7233f32
refactor: (GenAI) Reorganized Model Garden Samples (Group B) (#12599)
Thoughtseize1 Sep 23, 2024
e805715
refactor: (GenAI) Reorganized Image Generation Samples (Group B) (#12…
Thoughtseize1 Sep 23, 2024
403a04e
adding batch gemini predict sample (#12621)
CadillacBurgess1 Sep 23, 2024
aeb651c
chore(CODEOWNERS): Add cloud-samples-infra team to repo config owners…
grayside Sep 23, 2024
b044610
chore(CODEOWNERS): Remove unused teams (#12623)
grayside Sep 23, 2024
c4cc173
chore(gae): update hello world to the latest python runtime (#12610)
iennae Sep 24, 2024
39749b0
feat(GenAI): Gemma2 samples for Model Garden deployments to Vertex AI…
rsamborski Sep 24, 2024
3828bb7
feat(generative ai): update the tuning example to use gemini-1.5 mode…
Sep 24, 2024
82eb206
feat(generativeai): Add sample for Prompt Optimiser (#12624)
Sita04 Sep 24, 2024
8c38fa1
chore(blunderbuss): Remove unused teams (#12628)
grayside Sep 24, 2024
50cf5fb
fix(generativeai): update prompt optimizer sample and tests (#12630)
Sita04 Sep 24, 2024
b577b9b
feat(generative-ai): Update Gemini Flask and Pro model names (#12627)
msampathkumar Sep 25, 2024
b51ea18
feat(generativeai): Add new sample for text generation (#12633)
msampathkumar Sep 25, 2024
a34f85b
refactor: (GenAI) Reorganized Token Count Samples (Group C) (#12616)
Thoughtseize1 Sep 26, 2024
772a837
feat(generative-ai): Add new sample for Context Cache's list feature …
Valeriy-Burlaka Sep 26, 2024
9b5c39f
chore: update folder name (#12636)
Sita04 Sep 26, 2024
2b97e06
fix(gemma2): Word fix in comments (#12640)
rsamborski Sep 27, 2024
ec1581b
feat: Compute Reservation Samples. All operations: Create / Get / Lis…
Thoughtseize1 Sep 30, 2024
c7c429a
refactor(generative-ai): Cleaning samples - Group A (Controlled Gener…
Thoughtseize1 Oct 1, 2024
1e21c50
refactor: (GenAI) Reorganized Audio Samples (Group C) (#12643)
Thoughtseize1 Oct 1, 2024
7978d23
refactor: (GenAI) Reorganized Rag Samples (Group С) (#12612)
Thoughtseize1 Oct 1, 2024
2ed7299
refactor: (GenAI) Reorganized Grounding Samples (Group B) (#12594)
Thoughtseize1 Oct 1, 2024
a57b8c6
chore(deps): update dependency sqlalchemy-pytds to v1.0.2 (#12657)
renovate-bot Oct 1, 2024
142a9a6
Remove templated config_file path, fix parameter comments (#12653)
pavel-salnikov Oct 1, 2024
11bb938
fix(iam): add a print for visibility (#12639)
iennae Oct 1, 2024
fc6e2e5
feat(tts): add streaming synthesis sample (#12642)
Jacoblevy1999 Oct 2, 2024
e9d5132
chore(deps): update dependency pillow to v10 [security] (#12632)
renovate-bot Oct 2, 2024
1d54987
refactor(generative-ai): Cleaning old samples - Group B -> Grounding,…
Thoughtseize1 Oct 3, 2024
c935bfa
feat(Gen AI): Add new sample for Evaluation feature (#12602)
Valeriy-Burlaka Oct 3, 2024
b86d445
feat (Gen AI): Update Context-Cache sample to include expiration date…
Valeriy-Burlaka Oct 3, 2024
e867643
feat (Gen AI): Add new sample for Evaluation - Pairwise summarization…
Valeriy-Burlaka Oct 3, 2024
c84760d
feat: (Gen AI): Add sample for Gemini parallel function calling examp…
Valeriy-Burlaka Oct 3, 2024
e0b557d
Lint changes PR (#12663)
vijaykanthm Oct 3, 2024
b292d8e
fix: Update `discoveryengine.GcsSource` `data_schema` with more optio…
holtskinner Oct 3, 2024
613c074
chore(deps): update dependency protobuf to v4.25.5 (#12655)
renovate-bot Oct 3, 2024
9d37e6e
chore(deps): update dependency prometheus-flask-exporter to v0.23.1 (…
renovate-bot Oct 3, 2024
8d2d10a
chore(deps): update dependency google-cloud-storage-control to v1.0.3…
renovate-bot Oct 3, 2024
49527e3
chore(deps): update dependency google-cloud-recaptcha-enterprise to v…
renovate-bot Oct 3, 2024
e5ca9eb
chore(deps): update dependency google-cloud-enterpriseknowledgegraph …
renovate-bot Oct 3, 2024
f8211df
chore(deps): update dependency google-cloud-bigquery-migration to v0.…
renovate-bot Oct 3, 2024
33169bc
chore(deps): update dependency google-cloud-bigquery-connection to v1…
renovate-bot Oct 3, 2024
17f0249
chore(deps): update dependency datasets to v3.0.1 (#12646)
renovate-bot Oct 3, 2024
b976f71
feat(Gen-AI): Updates for the for list_context_caches sample (#12667)
Valeriy-Burlaka Oct 4, 2024
4f57784
chore(deps): update dependency webdriver-manager to v4.0.2 (#12659)
renovate-bot Oct 4, 2024
553c92b
chore(deps): update dependency google-cloud-kms to v3 (#12619)
renovate-bot Oct 4, 2024
8d2d6c2
feat: Create Compute reservation create from VM Sample (#12668)
Thoughtseize1 Oct 4, 2024
6b507e8
feat(GenerativeAI): Add new sample for embeddings feature (#12629)
Valeriy-Burlaka Oct 4, 2024
f53822e
chore(deps): update dependency pyyaml to v6.0.2 (#12656)
renovate-bot Oct 4, 2024
f5717e4
chore(codeowners): Update CODEOWNERS for recaptcha/ folder (#12674)
Sita04 Oct 6, 2024
42845e3
fix: typo in sample file name (#12676)
Valeriy-Burlaka Oct 7, 2024
dc098df
fix(gae): resolve linting issues in main_test.py (#12557)
iennae Oct 7, 2024
e46f8ad
chore(oss): correct apache license headers (#12666)
glasnt Oct 7, 2024
b5ade5a
refactor: (GenAI) Reorganized Video Samples (Group C) (#12644)
Thoughtseize1 Oct 8, 2024
ba41077
refactor: (GenAI) Reorganized Text Generation Samples (Group D) (#12673)
Thoughtseize1 Oct 8, 2024
3d4a41a
Merge branch 'GoogleCloudPlatform:main' into patch-5
riathakkar Oct 8, 2024
aad1eee
Merge branch 'GoogleCloudPlatform:main' into patch-5
riathakkar Oct 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions appengine/standard/iap/js/poll.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright Google Inc.
//
// Copyright 2017 Google LLC

// Licensed 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.
Expand Down Expand Up @@ -54,10 +54,21 @@ function sessionRefreshClicked() {

function checkSessionRefresh() {
if (iapSessionRefreshWindow != null && !iapSessionRefreshWindow.closed) {
fetch('/favicon.ico').then(function(response) {
// Attempting to start a new session.
// XMLHttpRequests is used by the server to identify AJAX requests
fetch('/favicon.ico', {
method: "GET",
credentials: 'include',
headers: {
'X-Requested-With': 'XMLHttpRequest'
}
}).then(function(response) {
// Checking if browser has a session for the requested app
if (response.status === 401) {
// No new session detected. Try to get a session again
window.setTimeout(checkSessionRefresh, 500);
} else {
// Session retrieved.
iapSessionRefreshWindow.close();
iapSessionRefreshWindow = null;
}
Expand Down