This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272 from FIRST-Tech-Challenge/pr_separate_app_engine
Reduced time for deploying to app engine
- Loading branch information
Showing
66 changed files
with
712 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.index_updated | ||
__pycache__/ | ||
compiled/* | ||
env_variables.yaml | ||
flask_secret_key.txt | ||
client_secrets.json | ||
key.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.cloud_function_ignore | ||
client_secrets.json | ||
flask_secret_key.txt | ||
key.json | ||
teams | ||
|
||
__pycache__/ | ||
app_engine/.app_engine_ignore | ||
app_engine/announcements.py | ||
app_engine/app.yaml | ||
app_engine/app_engine.py | ||
app_engine/config.py | ||
app_engine/credentialstore.py | ||
app_engine/dataset_producer.py | ||
app_engine/dataset_zipper.py | ||
app_engine/env_variables.yaml | ||
app_engine/oidc.py | ||
app_engine/requirements.txt | ||
app_engine/roles.py | ||
app_engine/team_info.py | ||
app_engine/test_routes.py | ||
app_engine/tracking.py | ||
app_engine/wrappers.py | ||
src/ | ||
static/ | ||
templates/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
app.yaml | ||
env_variables.yaml | ||
|
||
__pycache__/ |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# The python files in this directory are used in our App Engine service as well as our Cloud | ||
# Functions. | ||
|
||
# For relative imports to work. | ||
import os, sys; sys.path.append(os.path.dirname(os.path.realpath(__file__))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"version": "development" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,6 @@ | |
import re | ||
import time | ||
import traceback | ||
import uuid | ||
|
||
# My Modules | ||
import action | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
# limitations under the License. | ||
|
||
from google.cloud import datastore | ||
|
||
import constants | ||
import redis | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
# limitations under the License. | ||
|
||
import redis | ||
|
||
import constants | ||
|
||
class CredentialStore(): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright 2022 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 | ||
# | ||
# https://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. | ||
|
||
__author__ = "[email protected] (Liz Looney)" | ||
|
||
# My Modules | ||
import action | ||
import storage | ||
|
||
|
||
def prepare_to_start_dataset_production(team_uuid, description, video_uuid_list, eval_percent, create_time_ms): | ||
# storage.prepare_to_start_dataset_production will raise HttpErrorNotFound | ||
# if any of the team_uuid/video_uuids is not found or if none of the videos have labeled frames. | ||
dataset_uuid = storage.prepare_to_start_dataset_production(team_uuid, description, | ||
video_uuid_list, eval_percent, create_time_ms) | ||
return dataset_uuid | ||
|
||
def make_action_parameters(team_uuid, dataset_uuid, video_uuid_list, eval_percent, create_time_ms): | ||
action_parameters = action.create_action_parameters( | ||
team_uuid, action.ACTION_NAME_DATASET_PRODUCE) | ||
action_parameters['team_uuid'] = team_uuid | ||
action_parameters['dataset_uuid'] = dataset_uuid | ||
action_parameters['video_uuid_list'] = video_uuid_list | ||
action_parameters['eval_percent'] = eval_percent | ||
action_parameters['create_time_ms'] = create_time_ms | ||
return action_parameters |
Oops, something went wrong.