apache-airflow-providers-fab 2.0.2rc1__py3-none-any.whl → 2.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- airflow/providers/fab/__init__.py +3 -3
- airflow/providers/fab/auth_manager/api_endpoints/role_and_permission_endpoint.py +4 -0
- airflow/providers/fab/auth_manager/api_endpoints/user_endpoint.py +4 -0
- airflow/providers/fab/auth_manager/fab_auth_manager.py +2 -32
- airflow/providers/fab/auth_manager/models/__init__.py +56 -6
- airflow/providers/fab/auth_manager/models/anonymous_user.py +5 -1
- airflow/providers/fab/auth_manager/security_manager/override.py +30 -38
- airflow/providers/fab/get_provider_info.py +56 -0
- airflow/providers/fab/www/app.py +2 -0
- airflow/providers/fab/www/auth.py +3 -3
- airflow/providers/fab/www/extensions/init_jinja_globals.py +1 -1
- airflow/providers/fab/www/extensions/init_wsgi_middlewares.py +41 -0
- airflow/providers/fab/www/package-lock.json +1267 -528
- airflow/providers/fab/www/package.json +8 -8
- airflow/providers/fab/www/security/permissions.py +0 -13
- airflow/providers/fab/www/static/dist/{main.edb2d40dfbbc537916e3.js → main.eb83be09d97c23018bcb.js} +1 -1
- airflow/providers/fab/www/static/dist/manifest.json +11 -11
- airflow/providers/fab/www/static/dist/{moment.624b1f00ba723d39ce06.js → moment.75a9286ff6019fefe5d9.js} +1 -1
- airflow/providers/fab/www/views.py +1 -1
- {apache_airflow_providers_fab-2.0.2rc1.dist-info → apache_airflow_providers_fab-2.1.0.dist-info}/METADATA +11 -11
- {apache_airflow_providers_fab-2.0.2rc1.dist-info → apache_airflow_providers_fab-2.1.0.dist-info}/RECORD +36 -35
- /airflow/providers/fab/www/static/dist/{airflowDefaultTheme.feec4a4075c2f3d6ae01.css → airflowDefaultTheme.a26736fa84b3356edac0.css} +0 -0
- /airflow/providers/fab/www/static/dist/{airflowDefaultTheme.feec4a4075c2f3d6ae01.js → airflowDefaultTheme.a26736fa84b3356edac0.js} +0 -0
- /airflow/providers/fab/www/static/dist/{flash.137b30cff85b5588e661.css → flash.fbcc531a39479aa27065.css} +0 -0
- /airflow/providers/fab/www/static/dist/{flash.137b30cff85b5588e661.js → flash.fbcc531a39479aa27065.js} +0 -0
- /airflow/providers/fab/www/static/dist/{loadingDots.48ab7d5b04e66f2686b0.css → loadingDots.e1fc82c3ac3f9af3771e.css} +0 -0
- /airflow/providers/fab/www/static/dist/{loadingDots.48ab7d5b04e66f2686b0.js → loadingDots.e1fc82c3ac3f9af3771e.js} +0 -0
- /airflow/providers/fab/www/static/dist/{main.edb2d40dfbbc537916e3.css → main.eb83be09d97c23018bcb.css} +0 -0
- /airflow/providers/fab/www/static/dist/{main.edb2d40dfbbc537916e3.js.LICENSE.txt → main.eb83be09d97c23018bcb.js.LICENSE.txt} +0 -0
- /airflow/providers/fab/www/static/dist/{materialIcons.57390fa60d8f61175334.css → materialIcons.b21138ea09d0cdf9ffc4.css} +0 -0
- /airflow/providers/fab/www/static/dist/{materialIcons.57390fa60d8f61175334.js → materialIcons.b21138ea09d0cdf9ffc4.js} +0 -0
- /airflow/providers/fab/www/static/dist/{moment.624b1f00ba723d39ce06.js.LICENSE.txt → moment.75a9286ff6019fefe5d9.js.LICENSE.txt} +0 -0
- {apache_airflow_providers_fab-2.0.2rc1.dist-info → apache_airflow_providers_fab-2.1.0.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_fab-2.0.2rc1.dist-info → apache_airflow_providers_fab-2.1.0.dist-info}/entry_points.txt +0 -0
- {apache_airflow_providers_fab-2.0.2rc1.dist-info → apache_airflow_providers_fab-2.1.0.dist-info}/licenses/3rd-party-licenses/LICENSES-ui.txt +0 -0
- {apache_airflow_providers_fab-2.0.2rc1.dist-info → apache_airflow_providers_fab-2.1.0.dist-info}/licenses/NOTICE +0 -0
@@ -39,17 +39,17 @@
|
|
39
39
|
]
|
40
40
|
},
|
41
41
|
"devDependencies": {
|
42
|
-
"@babel/core": "^7.
|
43
|
-
"@babel/eslint-parser": "^7.27.
|
44
|
-
"@babel/plugin-transform-runtime": "^7.
|
45
|
-
"@babel/preset-env": "^7.
|
42
|
+
"@babel/core": "^7.27.1",
|
43
|
+
"@babel/eslint-parser": "^7.27.1",
|
44
|
+
"@babel/plugin-transform-runtime": "^7.27.1",
|
45
|
+
"@babel/preset-env": "^7.27.2",
|
46
46
|
"babel-loader": "^10.0.0",
|
47
47
|
"clean-webpack-plugin": "^4.0.0",
|
48
48
|
"copy-webpack-plugin": "^13.0.0",
|
49
49
|
"css-loader": "7.1.2",
|
50
50
|
"css-minimizer-webpack-plugin": "^7.0.2",
|
51
|
-
"eslint": "^9.
|
52
|
-
"eslint-config-prettier": "^10.1.
|
51
|
+
"eslint": "^9.26.0",
|
52
|
+
"eslint-config-prettier": "^10.1.5",
|
53
53
|
"eslint-plugin-html": "^8.1.2",
|
54
54
|
"eslint-plugin-import": "^2.27.5",
|
55
55
|
"eslint-plugin-node": "^11.1.0",
|
@@ -59,10 +59,10 @@
|
|
59
59
|
"moment": "^2.29.4",
|
60
60
|
"moment-locales-webpack-plugin": "^1.2.0",
|
61
61
|
"prettier": "^3.5.3",
|
62
|
-
"stylelint": "^16.19.
|
62
|
+
"stylelint": "^16.19.1",
|
63
63
|
"terser-webpack-plugin": "<6.0.0",
|
64
64
|
"url-loader": "4.1.1",
|
65
|
-
"webpack": "^5.99.
|
65
|
+
"webpack": "^5.99.8",
|
66
66
|
"webpack-cli": "^6.0.1",
|
67
67
|
"webpack-license-plugin": "^4.2.1",
|
68
68
|
"webpack-manifest-plugin": "^5.0.1"
|
@@ -101,16 +101,3 @@ def resource_name(root_dag_id: str, resource: str) -> str:
|
|
101
101
|
if root_dag_id.startswith(tuple(PREFIX_RESOURCES_MAP.keys())):
|
102
102
|
return root_dag_id
|
103
103
|
return f"{RESOURCE_DETAILS_MAP[resource]['prefix']}{root_dag_id}"
|
104
|
-
|
105
|
-
|
106
|
-
def resource_name_for_dag(root_dag_id: str) -> str:
|
107
|
-
"""
|
108
|
-
Return the resource name for a DAG id.
|
109
|
-
|
110
|
-
Note: This function is kept for backwards compatibility.
|
111
|
-
"""
|
112
|
-
if root_dag_id == RESOURCE_DAG:
|
113
|
-
return root_dag_id
|
114
|
-
if root_dag_id.startswith(RESOURCE_DAG_PREFIX):
|
115
|
-
return root_dag_id
|
116
|
-
return f"{RESOURCE_DAG_PREFIX}{root_dag_id}"
|
airflow/providers/fab/www/static/dist/{main.edb2d40dfbbc537916e3.js → main.eb83be09d97c23018bcb.js}
RENAMED
@@ -1,2 +1,2 @@
|
|
1
|
-
/*! For license information please see main.
|
1
|
+
/*! For license information please see main.eb83be09d97c23018bcb.js.LICENSE.txt */
|
2
2
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Airflow=t():(e.Airflow=e.Airflow||{},e.Airflow.main=t())}(self,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var a in o)e.o(o,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:o[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};return(()=>{e.r(t),e.d(t,{convertSecsToHumanReadable:()=>d,escapeHtml:()=>s});const o="YYYY-MM-DD, HH:mm:ss",a="YYYY-MM-DD, HH:mm:ss z",n="z (Z)";function r(e){return e instanceof moment?e.isUTC()?"UTC":e.format(n):"UTC"===e?e:moment().tz(e).format(n)}function i(e){moment.tz.setDefault(e),$('time[data-datetime-convert!="false"]').each(((e,t)=>{const n=$(t),r=moment(n.attr("datetime"));r._isValid&&n.text(r.format(n.data("with-tz")?a:o)),void 0!==n.attr("title")&&n.attr("title",r.isUTC()?"":`UTC: ${r.clone().utc().format()}`)})),$(".datetime input").each(((e,t)=>{t.value=moment(t.value).format()}))}function m(){const e=moment();$("#clock").attr("datetime",e.format("YYYY-MM-DDThh:mm:ssZ")).html(`${e.format("HH:mm")} <strong>${r(e)}</strong>`)}function l(e){localStorage.setItem("selected-timezone",e);const t=new CustomEvent("timezone",{detail:e});document.dispatchEvent(t),i(e),m(),$("body").trigger({type:"airflow.timezone-change",timezone:e})}window.isoDateToTimeEl=function(e,t){const a=moment(e),n=$.extend({title:!0},t).title,r=document.createElement("time");return r.setAttribute("datetime",a.format()),n&&r.setAttribute("title",a.isUTC()?"":`UTC: ${a.clone().utc().format()}`),r.innerText=a.format(o),r},window.moment=Airflow.moment;const c=document.createElement("span");function s(e){return c.textContent=e,c.innerHTML}function d(e){let t=e;const o=e,a=o-Math.floor(o);t=Math.floor(t);const n=Math.floor(t/3600);t-=3600*n;const r=Math.floor(t/60);t-=60*r;let i="";return n>0&&(i+=`${n}Hours `),r>0&&(i+=`${r}Min `),t+a>0&&(Math.floor(o)===o?i+=`${t}Sec`:(t+=a,i+=`${t.toFixed(3)}Sec`)),i}function u(){const e=moment.tz.guess(),t=localStorage.getItem("selected-timezone"),o=localStorage.getItem("chosen-timezone");function a(t){localStorage.setItem("chosen-timezone",t),t!==e||t!==Airflow.serverTimezone?($("#timezone-manual a").data("timezone",t).text(r(t)),$("#timezone-manual").show()):$("#timezone-manual").hide()}o&&a(o),l(t||Airflow.defaultUITimezone),"UTC"!==Airflow.serverTimezone&&($("#timezone-server a").html(`${r(Airflow.serverTimezone)} <span class="label label-primary">Server</span>`),$("#timezone-server").show()),Airflow.serverTimezone!==e?$("#timezone-local a").attr("data-timezone",e).html(`${r(e)} <span class="label label-info">Local</span>`):$("#timezone-local").hide(),$("a[data-timezone]").click((e=>{l($(e.currentTarget).data("timezone"))}));const n=moment.tz.names().map((e=>({category:e.split("/",1)[0],label:e.replace("_"," "),value:e})));$("#timezone-other").autocomplete({source:(e,t)=>{t(function(e,t){const o=new RegExp($.ui.autocomplete.escapeRegex(t),"i");return $.grep(e,(e=>o.test(e.label)||o.test(e.category)))}(n,e.term))},appendTo:"#timezone-menu > li:nth-child(6) > form",focus:(e,t)=>{e.preventDefault(),$(this).val(t.item.label)},select:(e,t)=>($(this).val(""),a(t.item.value),l(t.item.value),!1)}).data("ui-autocomplete")._renderItem=function(e,t){const o=$("<li>");return o.append(`<a class='dropdown-item' href='#' role='option'>${t.label}</a>`),o.appendTo(e)},$.ui.autocomplete.prototype._renderMenu=function(e,t){let o="";e.addClass("typeahead dropdown-menu"),e.attr("role","listbox"),$.each(t,((t,a)=>{a.category!==o&&(e.append(`<li class='ui-autocomplete-category dropdown-header'>${a.category}</li>`),o=a.category),this._renderItemData(e,a)}))}}function f(e){const t=$(e),o=$(".filter_val.form-control",t.parents("tr"));"Is Null"===t.text()||"Is not Null"===t.text()?(void 0!==o.attr("required")&&(o.removeAttr("required"),o.attr("airflow-required",!0)),1===o.parent(".datetime").length?o.parent(".datetime").hide():o.hide()):("true"===o.attr("airflow-required")&&(o.attr("required",!0),o.removeAttr("airflow-required")),1===o.parent(".datetime").length?o.parent(".datetime").show():o.show())}window.escapeHtml=s,window.convertSecsToHumanReadable=d,window.postAsForm=function(e,t){const o=$("<form></form>");o.attr("method","POST"),o.attr("action",e),$.each(t||{},((e,t)=>{const a=$("<input></input>");a.attr("type","hidden"),a.attr("name",e),a.attr("value",t),o.append(a)}));const a=$("<input></input>");a.attr("type","hidden"),a.attr("name","csrf_token"),a.attr("value",csrfToken),o.append(a),$(document.body).append(o),o.submit()},$(document).ready((()=>{u(),$("#clock").attr("data-original-title",hostName).attr("data-placement","bottom").parent().show(),m(),setInterval(m,1e3),$.ajaxSetup({beforeSend(e,t){/^(GET|HEAD|OPTIONS|TRACE)$/i.test(t.type)||this.crossDomain||e.setRequestHeader("X-CSRFToken",csrfToken)}}),$.fn.datetimepicker.defaults.sideBySide=!0,$(".datetimepicker").datetimepicker({format:"YYYY-MM-DDTHH:mm:ssZ"}),$(".datepicker").datetimepicker({format:"YYYY-MM-DD"}),$(".timepicker").datetimepicker({format:"HH:mm:ss"}),$(".filters .select2-chosen").each(((e,t)=>{f(t)})),$(".filters .select2-chosen").on("DOMNodeInserted",(e=>{f(e.target)})),$("#filter_form a.filter").click((()=>{$(".datetimepicker").datetimepicker(),$(".filters .select2-chosen").on("DOMNodeInserted",(e=>{f(e.target)}))})),$(".js-tooltip").tooltip()}))})(),t})()));
|
@@ -1,15 +1,15 @@
|
|
1
1
|
{
|
2
|
-
"airflowDefaultTheme.css": "airflowDefaultTheme.
|
3
|
-
"airflowDefaultTheme.js": "airflowDefaultTheme.
|
4
|
-
"flash.css": "flash.
|
5
|
-
"flash.js": "flash.
|
6
|
-
"loadingDots.css": "loadingDots.
|
7
|
-
"loadingDots.js": "loadingDots.
|
8
|
-
"main.css": "main.
|
9
|
-
"main.js": "main.
|
10
|
-
"materialIcons.css": "materialIcons.
|
11
|
-
"materialIcons.js": "materialIcons.
|
12
|
-
"moment.js": "moment.
|
2
|
+
"airflowDefaultTheme.css": "airflowDefaultTheme.a26736fa84b3356edac0.css",
|
3
|
+
"airflowDefaultTheme.js": "airflowDefaultTheme.a26736fa84b3356edac0.js",
|
4
|
+
"flash.css": "flash.fbcc531a39479aa27065.css",
|
5
|
+
"flash.js": "flash.fbcc531a39479aa27065.js",
|
6
|
+
"loadingDots.css": "loadingDots.e1fc82c3ac3f9af3771e.css",
|
7
|
+
"loadingDots.js": "loadingDots.e1fc82c3ac3f9af3771e.js",
|
8
|
+
"main.css": "main.eb83be09d97c23018bcb.css",
|
9
|
+
"main.js": "main.eb83be09d97c23018bcb.js",
|
10
|
+
"materialIcons.css": "materialIcons.b21138ea09d0cdf9ffc4.css",
|
11
|
+
"materialIcons.js": "materialIcons.b21138ea09d0cdf9ffc4.js",
|
12
|
+
"moment.js": "moment.75a9286ff6019fefe5d9.js",
|
13
13
|
"jquery-ui.min.js": "jquery-ui.min.js",
|
14
14
|
"jquery-ui.min.css": "jquery-ui.min.css",
|
15
15
|
"oss-licenses.json": "oss-licenses.json",
|