-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug tracker and Buganizer fixes #147
Merged
Merged
Changes from 250 commits
Commits
Show all changes
1422 commits
Select commit
Hold shift + click to select a range
3877ea3
Empty Dataset handled in tree view
Jeyaprakash-NK c9bc3ed
condition changes
saranyaloganathan23 2046da7
Big Query project hierarchy and cleanup
Jeyaprakash-NK 09ec06e
DPMS old code retained changes
Jeyaprakash-NK 5e2396f
Merge pull request #128 from Shubha-accenture/sprint19-runtime-versio…
Shubha-accenture f158f68
Dataset API pageToken and CSS tree changes
Jeyaprakash-NK 116195d
changing dataplex API to bigquery APIs
saranyaloganathan23 d37b34a
Big Query region added and stored in local storage
Jeyaprakash-NK 16618e1
FE changes for APIs from Dataplex to bigQuery
Jeyaprakash-NK 2ee1760
ID-213. Removed cluster option for BigQuery
aditee-accenture 8ee7e06
Big query enhancement changes
Jeyaprakash-NK 38da70a
Big Query schema added fields and tree condition changes
Jeyaprakash-NK 41a48d2
BQ region grouping added and stored value in settings
Jeyaprakash-NK 3eaad71
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK 50f6515
Merge branch 'sprint19-bigquery-launcher-changes' of https://github.c…
Jeyaprakash-NK 8f47e60
BQ dataset filter by BQ region changes
Jeyaprakash-NK 7a83477
settings changes
saranyaloganathan23 43cb319
BQ region onchange for empty handled
Jeyaprakash-NK 139b57f
version updated to 0.1.76
Jeyaprakash-NK 3a85d58
Handling table count logic change
Jeyaprakash-NK adc99b0
adding page token
saranyaloganathan23 e274127
Table preview API page token added
Jeyaprakash-NK 275aff7
Tree view based on total table counts
Jeyaprakash-NK d367a0e
preview check
saranyaloganathan23 58fa35d
Merge branch 'sprint19-dataset-explorer-changes' of https://github.co…
saranyaloganathan23 fcd13fe
Tree view loader fix
Jeyaprakash-NK 439b802
Preview API error handling
Jeyaprakash-NK 43e4f08
code cleanup
Jeyaprakash-NK 8069dae
BQ table, dataset info page loader and preview empty handled
Jeyaprakash-NK 1e1ba16
BE code review changes and formating
saranyaloganathan23 1ee8882
Merge branch 'sprint19-dataset-explorer-changes' of https://github.co…
saranyaloganathan23 d2085d4
Internal review comments changes FE
Jeyaprakash-NK 418c2b1
Merge pull request #129 from Shubha-accenture/sprint19-dataset-explor…
Jeyaprakash-NK 3619864
Merge remote-tracking branch 'upstream/main'
Jeyaprakash-NK 0b16f22
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK e4903b7
Merge pull request #130 from Shubha-accenture/sprint19-dataset-explor…
Jeyaprakash-NK dd92726
Merge remote-tracking branch 'upstream/main'
Jeyaprakash-NK 5f41b49
Review comments - bq region dropdown created
Jeyaprakash-NK ef28e83
license header year change for new files created
Jeyaprakash-NK 854c785
variable name change to "dataset"
Jeyaprakash-NK cec831b
table style handled using css selector
Jeyaprakash-NK 3607964
useEffect review comments fixed
Jeyaprakash-NK 730f422
useEffect review comments fixes
Jeyaprakash-NK be1637d
usememo removed for schema tables
Jeyaprakash-NK de5a805
preview column type added
Jeyaprakash-NK ad51579
Merge pull request #131 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 4703f5f
minor fix for Loader
aditee-accenture 317a090
Serverless notebook logo based on language
Jeyaprakash-NK bc745ce
Bug tracker - 222 dag run always for selected date
Jeyaprakash-NK fe4f1b2
Type added
Jeyaprakash-NK a0cc6a7
Merge pull request #132 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 8fdb470
setIsLoading missing added
Jeyaprakash-NK 9031a1f
Table and dataset code bigquery refactoring
saranyaloganathan23 667b594
Rename wrapper file
saranyaloganathan23 9fdc0ec
Merge pull request #133 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture d81fc91
Pull from google repo and conflicts resolved
Jeyaprakash-NK 3c65ebc
Bq preview index file changes
saranyaloganathan23 cd56be7
Wrapper files name change
Jeyaprakash-NK fd832b7
Merge pull request #134 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture fb76084
Tree structure refactor logic changes
Jeyaprakash-NK a9fa9c5
Merge pull request #135 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture e4794c0
Plugin toast handled based on BQ feature enable
Jeyaprakash-NK ad56673
Merge remote-tracking branch 'upstream/main'
Jeyaprakash-NK da799fe
Merge branch 'sprint19-bigquery-launcher-changes' of https://github.c…
Jeyaprakash-NK 4b3230b
big query and dpms refactor
Jeyaprakash-NK eff430a
ID:221-Toast message timer fix
aditee-accenture b09da1c
Merge branch 'sprint19-dataset-explorer-changes' of https://github.co…
aditee-accenture 390d21a
Multiple projects handling in dataset tree view
Jeyaprakash-NK f16f461
Merge pull request #136 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 9ed25a7
Empty schema info page handled
Jeyaprakash-NK 9b9bfc3
search functionality code commented out
Jeyaprakash-NK f5113fd
Height css changes
Jeyaprakash-NK 12060ef
Merge pull request #137 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 9302162
schema empty error message added
Jeyaprakash-NK fb6497c
Merge branch 'sprint19-bigquery-launcher-changes' of https://github.c…
Jeyaprakash-NK b6a7b7c
Merge pull request #138 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 1e30c16
schema page minor UI fixes scroll
Jeyaprakash-NK 578964a
Network configuration Error messages style change
Jeyaprakash-NK dc38839
No cluster available handled for create pages
Jeyaprakash-NK b883428
Merge branch 'sprint19-bigquery-launcher-changes' of https://github.c…
Jeyaprakash-NK 799f604
search code enabled
Jeyaprakash-NK 0844b26
ipynb file removed
Jeyaprakash-NK b40eab7
Revert "search code enabled"
Jeyaprakash-NK 835ce47
Revert "ipynb file removed"
Jeyaprakash-NK b56dd1b
Delete ipynb file
Jeyaprakash-NK 0a38df3
History server cluster no data message added
Jeyaprakash-NK 2e1580d
Merge pull request #139 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture eb6ba34
Big Query search changes FE and BE
Jeyaprakash-NK 10dc1a3
Merge branch 'sprint19-bigquery-launcher-changes' of https://github.c…
Jeyaprakash-NK 521a808
code cleanup changes
Jeyaprakash-NK 1688e45
commented code removed
Jeyaprakash-NK c170dcd
Fetching all the records in backend
harsha-accenture 9a1bb4d
Incorporated review comments
harsha-accenture c796f98
Merge pull request #140 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 49a7ec3
code formatting
saranyaloganathan23 c4e4556
removed utitlities
saranyaloganathan23 61adaca
Merge branch 'sprint19-bigquery-launcher-changes' of https://github.c…
Jeyaprakash-NK 6c86835
Merge pull request #141 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 43c34e9
By default display BigQuery tree in panel
Jeyaprakash-NK b6db989
Merge branch 'sprint19-bigquery-launcher-changes' of https://github.c…
Jeyaprakash-NK 6e0b8d6
Merge pull request #142 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 091eaa7
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK 7258d02
BQ search FE search removed and handled in BE
Jeyaprakash-NK 0f03146
Merge remote-tracking branch 'upstream/main'
Jeyaprakash-NK 990bb1f
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK 0412e09
big query tree loader icon size reduced
Jeyaprakash-NK 28ced98
No dataset - Toast removed
Jeyaprakash-NK d92a4b5
search loader size reduced
Jeyaprakash-NK 6f70a1a
Handled dataset empty condition
Jeyaprakash-NK 2c111f4
handled text overflow for big query tree data
Jeyaprakash-NK 441899c
Merge pull request #143 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 944bb4d
ID:231, 233 bugs fixed
aditee-accenture b9de0b7
css fixes
Jeyaprakash-NK cf289dd
Dataset explorer reload after project/region change
Jeyaprakash-NK 8e5a5f5
code cleanup
aditee-accenture 10adfae
name change
Jeyaprakash-NK 6f80633
license year change
Jeyaprakash-NK d6867ab
Merge pull request #144 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture fd088b4
toast errors changes
aditee-accenture d3da2ac
active toast fix
aditee-accenture 21c0fb2
bug tracker fixes - 235, 238, 241
Jeyaprakash-NK 77ab4e5
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK 12921b9
console log fix
aditee-accenture b85be52
pull from main and conflict resolved
aditee-accenture 17a385c
Bug tracker ID 237 fix
Jeyaprakash-NK be08feb
code cleanuo
aditee-accenture cc9636a
code cleanup
aditee-accenture 8344979
Merge pull request #145 from Shubha-accenture/sprint19-toast-errors-fix
harsha-accenture afb8452
Bug tracker ID - 243 fix
Jeyaprakash-NK cd13101
Merge remote-tracking branch 'upstream/main'
Jeyaprakash-NK 6c543aa
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK fc8f3bc
Preview scroll fix
aditee-accenture 27a7f6b
minor css fix
aditee-accenture 98abf50
Preview page pagination server side changes
Jeyaprakash-NK c4ba796
license year change
Jeyaprakash-NK fc5e128
Merge pull request #146 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 2a24a7e
Preview data object type handled
Jeyaprakash-NK b4afe90
Merge pull request #147 from Shubha-accenture/sprint19-dataset-explor…
Jeyaprakash-NK ca3ddd9
Big Query dataset explorer new panel created
Jeyaprakash-NK 695db9c
Loader changes and pagination changes
saranyaloganathan23 bc3296d
class name changes - BigQueryWidget
Jeyaprakash-NK 465497d
Dataset explorer refresh icon added
Jeyaprakash-NK e706a99
Merge pull request #148 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 2c969bb
Refresh Icon moved to top level
Jeyaprakash-NK 9bfce38
icon changes
saranyaloganathan23 ec68c6e
handling loader
saranyaloganathan23 f90f809
Merge remote-tracking branch 'upstream/main'
Jeyaprakash-NK b5dbc42
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK aab1a81
removed commented
saranyaloganathan23 2de3c12
configure gateway name change
Jeyaprakash-NK ee0b754
get cached credentials added in utils
Jeyaprakash-NK 64c9717
Merge branch 'sprint19-dataset-explorer-fixes' of https://github.com/…
saranyaloganathan23 ed0d7e0
Credentials cache added
Jeyaprakash-NK b6855a3
Merge branch 'sprint19-dataset-explorer-fixes' of https://github.com/…
saranyaloganathan23 27c1f62
token expiry fetch changes
saranyaloganathan23 d317dc3
Merge pull request #149 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 4005a71
Tooltip added for custom created panels
Jeyaprakash-NK b75222d
Linear progress bar added for calendar load
Jeyaprakash-NK 2865c6d
UI fixes and Loader added for tree all levels
Jeyaprakash-NK 8099134
remove cache
saranyaloganathan23 24307d7
code formatting
saranyaloganathan23 a971132
loader padding changes
saranyaloganathan23 2d36efd
prettier fix
Jeyaprakash-NK 9ca3e86
Merge pull request #150 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture e3480c6
Tooltip added for tree
Jeyaprakash-NK 8d23000
bug fix
aditee-accenture 6be9885
code cleanup
aditee-accenture 7322f12
Merge pull request #151 from Shubha-accenture/sprint19-dataset-explor…
Shubha-accenture 9fb9b79
execution history height changes
aditee-accenture adac948
Merge pull request #152 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 6c62887
Backend file, folder name changes
Jeyaprakash-NK a1fb2c1
controller name fix
Jeyaprakash-NK da5f62e
Merge pull request #153 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 22cd3af
Big Query code separation - FE
Jeyaprakash-NK b715c51
Dpms service file separation changes
Jeyaprakash-NK 0aa6fac
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK 0e01388
Merge pull request #154 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 137003d
Height resize handled on window height change
Jeyaprakash-NK 0a2d0f1
Merge pull request #155 from Shubha-accenture/sprint19-dataset-explor…
harsha-accenture 6bda1c3
version updated to 0.1.77
Jeyaprakash-NK 9f41368
ID 249- BQ preview pagination fixes
Jeyaprakash-NK 08ac40c
ID 341324879 - Buganizer P4 fix
Jeyaprakash-NK aa4997a
ID 341318983 - P3 BQ region settings fixes
Jeyaprakash-NK 7a99cff
Bug Tracker Id - 251 and Buganiser id 341323620 fix
saranyaloganathan23 e0315de
toast handling in dag list
saranyaloganathan23 bc0fe7c
Merge pull request #156 from Shubha-accenture/sprint20-client-bug-tra…
harsha-accenture 882ba1f
Merge remote-tracking branch 'upstream/main'
Jeyaprakash-NK 8f000c2
Buganizer 341324188 and ID - 227 fixes
Jeyaprakash-NK b1cead7
code fix
Jeyaprakash-NK 6f99f95
Merge pull request #157 from Shubha-accenture/sprint20-client-bug-tra…
harsha-accenture 8d3e8fd
Merge remote-tracking branch 'upstream/main'
Jeyaprakash-NK 0485880
BQ preview page loader added for page switch
Jeyaprakash-NK 0f609f9
version updated to 0.1.78
Jeyaprakash-NK f868f97
Merge pull request #158 from Shubha-accenture/sprint20-client-bug-tra…
harsha-accenture 1f5a5dc
debounce added
aditee-accenture 847148a
page size increased and year change
Jeyaprakash-NK 6f405bf
Merge pull request #159 from Shubha-accenture/sprint20-client-bug-tra…
harsha-accenture 0764616
Changed all the credentials API to async await
harsha-accenture 4784793
Moved a method from urls to gcpUrlService
harsha-accenture 8e67788
List jobs API call stop after unmounting the page
Jeyaprakash-NK da69bfc
Moving the gcp_service_url back to urls file
harsha-accenture 94399c5
Review comments
aditee-accenture dbfee0c
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK f9867df
Merge branch 'sprint20-client-bug-tracker-fixes' of https://github.co…
Jeyaprakash-NK 0bbe5ec
Create batch - Network & SubNetwork fixes
Jeyaprakash-NK 76bff01
internal bug fix
aditee-accenture df77f91
internal bug fix ID-1
aditee-accenture 4c87971
Refactored backend code as per review comments
harsha-accenture 2c3eb09
removed unwanted code
harsha-accenture 6b1e278
Merge pull request #161 from Shubha-accenture/origin/sprint20-backend…
harsha-accenture 349e7ac
Merge pull request #160 from Shubha-accenture/sprint20-client-bug-tra…
Jeyaprakash-NK 48b258a
Bug fix for the prepare_dag
harsha-accenture 5c078fb
Merge pull request #162 from Shubha-accenture/origin/sprint20-backend…
harsha-accenture 3f486ed
Internal bug fixes
aditee-accenture fa8249b
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK 036d92c
handling filter undefined
saranyaloganathan23 2c21158
Dag output download fix
aditee-accenture 395ca35
Removing unused input file download and papermill name change
saranyaloganathan23 68eccbe
Merge branch 'sprint20-client-bug-tracker-fixes' of https://github.co…
saranyaloganathan23 61e2ebe
removing dag input file download code
saranyaloganathan23 34744ea
black code formatting
saranyaloganathan23 904412c
internal bug fix ID: 5
aditee-accenture f2aeb15
Internal bug ID-1
aditee-accenture 66ec96f
Internal bug fix ID: 2
aditee-accenture 01497e8
Merge pull request #163 from Shubha-accenture/sprint20-client-bug-tra…
harsha-accenture 68dacd4
Storing dag file in scheduled-jobs folder
saranyaloganathan23 10200e7
var name change
saranyaloganathan23 b2a3f0d
Merge pull request #164 from Shubha-accenture/sprint20-client-bug-tra…
harsha-accenture 0a5e65d
creating subfolder for dag and papermill
saranyaloganathan23 a9dae7b
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK 469b5a1
Settings page FE changes
Jeyaprakash-NK f1f973c
unit test cases
saranyaloganathan23 a8b2b9f
Merge pull request #165 from Shubha-accenture/sprint20-client-bug-tra…
harsha-accenture ab780ee
Submit job small fix "Spark"
Jeyaprakash-NK 8288bf9
multiple toast fix
aditee-accenture f60b2ba
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK 9d78f39
toast id change
aditee-accenture 312277d
Merge branch 'sprint20-client-bug-tracker-fixes' of https://github.co…
aditee-accenture 051cd01
Merge pull request #166 from Shubha-accenture/sprint20-client-bug-tra…
harsha-accenture 7daa528
Settings name modified in test cases
Jeyaprakash-NK ffd8815
import order and commented code removal
saranyaloganathan23 14854ca
black code formatter
saranyaloganathan23 8a7923e
Merge branch 'main' of https://github.com/Shubha-accenture/dataproc-j…
Jeyaprakash-NK 1e7ab4c
isort import ordering
saranyaloganathan23 322a6fa
Merge branch 'sprint20-client-bug-tracker-fixes' of https://github.co…
saranyaloganathan23 4018073
black code formatting
saranyaloganathan23 a48be2b
removing string format in unsed places
saranyaloganathan23 a707a6d
Merge pull request #167 from Shubha-accenture/sprint20-client-bug-tra…
harsha-accenture ff0f9ec
removing unused imports
saranyaloganathan23 d4e20d6
Merge pull request #168 from Shubha-accenture/sprint20-client-bug-tra…
harsha-accenture File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 was deleted.
Oops, something went wrong.
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,167 @@ | ||
# Copyright 2024 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. | ||
|
||
import json | ||
import subprocess | ||
from dataproc_jupyter_plugin import credentials | ||
from dataproc_jupyter_plugin.services import airflow | ||
from jupyter_server.base.handlers import APIHandler | ||
import tornado | ||
|
||
|
||
class DagListController(APIHandler): | ||
@tornado.web.authenticated | ||
async def get(self): | ||
try: | ||
client = airflow.Client(await credentials.get_cached(), self.log) | ||
composer_name = self.get_argument("composer") | ||
dag_list = await client.list_jobs(composer_name) | ||
self.finish(json.dumps(dag_list)) | ||
except Exception as e: | ||
self.log.exception(f"Error fetching cluster list") | ||
self.finish({"error": str(e)}) | ||
|
||
|
||
class DagDeleteController(APIHandler): | ||
@tornado.web.authenticated | ||
async def get(self): | ||
try: | ||
client = airflow.Client(await credentials.get_cached(), self.log) | ||
composer = self.get_argument("composer") | ||
dag_id = self.get_argument("dag_id") | ||
from_page = self.get_argument("from_page", default=None) | ||
delete_response = await client.delete_job(composer, dag_id, from_page) | ||
if delete_response == 0: | ||
self.finish(json.dumps({"status": delete_response})) | ||
else: | ||
self.log.exception(f"Error deleting dag file") | ||
self.finish(json.dumps({"status": delete_response})) | ||
except Exception as e: | ||
self.log.exception(f"Error deleting dag file: {str(e)}") | ||
self.finish({"error": str(e)}) | ||
|
||
|
||
class DagUpdateController(APIHandler): | ||
@tornado.web.authenticated | ||
async def get(self): | ||
try: | ||
client = airflow.Client(await credentials.get_cached(), self.log) | ||
composer = self.get_argument("composer") | ||
dag_id = self.get_argument("dag_id") | ||
status = self.get_argument("status") | ||
update_response = await client.update_job(composer, dag_id, status) | ||
if update_response == 0: | ||
self.finish({"status": 0}) | ||
else: | ||
self.log.exception(f"Error updating status") | ||
self.finish(json.dumps(update_response)) | ||
except Exception as e: | ||
self.log.exception(f"Error updating status: {str(e)}") | ||
self.finish({"error": str(e)}) | ||
|
||
|
||
class DagRunController(APIHandler): | ||
@tornado.web.authenticated | ||
async def get(self): | ||
try: | ||
client = airflow.Client(await credentials.get_cached(), self.log) | ||
composer_name = self.get_argument("composer") | ||
dag_id = self.get_argument("dag_id") | ||
start_date = self.get_argument("start_date") | ||
offset = self.get_argument("offset") | ||
end_date = self.get_argument("end_date") | ||
dag_run_list = await client.list_dag_runs( | ||
composer_name, dag_id, start_date, end_date, offset | ||
) | ||
self.finish(json.dumps(dag_run_list)) | ||
except Exception as e: | ||
self.log.exception(f"Error fetching dag run list {str(e)}") | ||
self.finish({"error": str(e)}) | ||
|
||
|
||
class DagRunTaskController(APIHandler): | ||
@tornado.web.authenticated | ||
async def get(self): | ||
try: | ||
client = airflow.Client(await credentials.get_cached(), self.log) | ||
composer_name = self.get_argument("composer") | ||
dag_id = self.get_argument("dag_id") | ||
dag_run_id = self.get_argument("dag_run_id") | ||
dag_run_list = await client.list_dag_run_task( | ||
composer_name, dag_id, dag_run_id | ||
) | ||
self.finish(json.dumps(dag_run_list)) | ||
except Exception as e: | ||
self.log.exception(f"Error fetching dag run tasks: {str(e)}") | ||
self.finish({"error": str(e)}) | ||
|
||
|
||
class DagRunTaskLogsController(APIHandler): | ||
@tornado.web.authenticated | ||
async def get(self): | ||
try: | ||
client = airflow.Client(await credentials.get_cached(), self.log) | ||
composer_name = self.get_argument("composer") | ||
dag_id = self.get_argument("dag_id") | ||
dag_run_id = self.get_argument("dag_run_id") | ||
task_id = self.get_argument("task_id") | ||
task_try_number = self.get_argument("task_try_number") | ||
dag_run_list = await client.list_dag_run_task_logs( | ||
composer_name, dag_id, dag_run_id, task_id, task_try_number | ||
) | ||
self.finish(json.dumps(dag_run_list)) | ||
except Exception as e: | ||
self.log.exception(f"Error fetching dag run task logs: {str(e)}") | ||
self.finish({"error": str(e)}) | ||
|
||
|
||
class EditDagController(APIHandler): | ||
@tornado.web.authenticated | ||
async def get(self): | ||
try: | ||
client = airflow.Client(await credentials.get_cached(), self.log) | ||
bucket_name = self.get_argument("bucket_name") | ||
dag_id = self.get_argument("dag_id") | ||
dag_details = await client.edit_jobs(dag_id, bucket_name) | ||
self.finish(json.dumps(dag_details)) | ||
except Exception as e: | ||
self.log.exception(f"Error getting dag details") | ||
self.finish({"error": str(e)}) | ||
|
||
|
||
class ImportErrorController(APIHandler): | ||
@tornado.web.authenticated | ||
async def get(self): | ||
try: | ||
client = airflow.Client(await credentials.get_cached(), self.log) | ||
composer_name = self.get_argument("composer") | ||
import_errors_list = await client.list_import_errors(composer_name) | ||
self.finish(json.dumps(import_errors_list)) | ||
except Exception as e: | ||
self.log.exception(f"Error fetching import error list") | ||
self.finish({"error": str(e)}) | ||
|
||
|
||
class TriggerDagController(APIHandler): | ||
@tornado.web.authenticated | ||
async def get(self): | ||
try: | ||
client = airflow.Client(await credentials.get_cached(), self.log) | ||
dag_id = self.get_argument("dag_id") | ||
composer = self.get_argument("composer") | ||
trigger = await client.dag_trigger(dag_id, composer) | ||
self.finish(json.dumps(trigger)) | ||
except Exception as e: | ||
self.log.exception(f"Error triggering dag") | ||
self.finish({"error": str(e)}) |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore this; there should be two blank lines before every top-level definition: https://google.github.io/styleguide/pyguide.html#35-blank-lines
When the
black
tool and the Google Python style guidelines conflict, we should go with what theblack
tool mandates, but when they are compatible we should follow both.In this case they are compatible so we should follow the Google style guide rules.