Code Monkey home page Code Monkey logo

airflow-code-editor's Introduction

Airflow Code Editor Plugin

A plugin for Apache Airflow that allows you to edit DAGs in browser. It provides a file managing interface within specified directories and it can be used to edit, upload, and download your files. If git support is enabled, the DAGs are stored in a Git repository. You may use it to view Git history, review local changes and commit.

Build Status PyPI version PyPI Downloads Code style: black

System Requirements

  • Airflow Versions
    • 1.10.3 or newer
  • git Versions (git is not required if git support is disabled)
    • 2.0 or newer

Screenshots

File Manager

File Manager

Editor

Editor

Search

Search

Git History

Git History

Git Workspace

Git Workspace

Install Instructions

Docker Images

For the ease of deployment, use the production-ready reference container image. The image is based on the reference images for Apache Airflow.

You can find the following images there:

  • andreax79/airflow-code-editor:latest - the latest released Airflow Code Editor image with the latest Apache Airflow version
  • andreax79/airflow-code-editor:2.8.3 - the latest released Airflow Code Editor with specific Airflow version
  • andreax79/airflow-code-editor:2.8.3-7.5.0 - specific version of Airflow and Airflow Code Editor

Installing from PyPI

  1. Install the plugin
  pip install airflow-code-editor
  1. Install optional dependencies
  • black - Black Python code formatter

  • isort - A Python utility/library to sort imports

  • fs-s3fs - S3FS Amazon S3 Filesystem

  • fs-gcsfs - Google Cloud Storage Filesystem

  • ... other filesystems supported by PyFilesystem - see https://www.pyfilesystem.org/page/index-of-filesystems/

      pip install black isort fs-s3fs fs-gcsfs
  1. Restart the Airflow Web Server

  2. Open Admin - DAGs Code Editor

Config Options

You can set options editing the Airflow's configuration file or setting environment variables. You can edit your airflow.cfg adding any of the following settings in the [code_editor] section. All the settings are optional.

  • enabled enable this plugin (default: True).
  • git_enabled enable git support (default: True). If git is not installed, disable this option.
  • git_cmd git command (path)
  • git_default_args git arguments added to each call (default: -c color.ui=true)
  • git_author_name human-readable name in the author/committer (default logged user first and last names)
  • git_author_email email for the author/committer (default: logged user email)
  • git_init_repo initialize a git repo in DAGs folder (default: True)
  • root_directory root folder (default: Airflow DAGs folder)
  • line_length Python code formatter - max line length (default: 88)
  • string_normalization Python code formatter - if true normalize string quotes and prefixes (default: False)
  • mount, mount1, ... configure additional folder (mount point) - format: name=xxx,path=yyy
  • ignored_entries comma-separated list of entries to be excluded from file/directory list (default: .*,__pycache__)
   [code_editor]
   enabled = True
   git_enabled = True
   git_cmd = /usr/bin/git
   git_default_args = -c color.ui=true
   git_init_repo = False
   root_directory = /home/airflow/dags
   line_length = 88
   string_normalization = False
   mount = name=data,path=/home/airflow/data
   mount1 = name=logs,path=/home/airflow/logs
   mount2 = name=data,path=s3://example

Mount Options:

Example:

  • name=ftp_server,path=ftp://user:[email protected]/private
  • name=data,path=s3://example
  • name=tmp,path=/tmp

You can also set options with the following environment variables:

  • AIRFLOW__CODE_EDITOR__ENABLED
  • AIRFLOW__CODE_EDITOR__GIT_ENABLED
  • AIRFLOW__CODE_EDITOR__GIT_CMD
  • AIRFLOW__CODE_EDITOR__GIT_DEFAULT_ARGS
  • AIRFLOW__CODE_EDITOR__GIT_AUTHOR_NAME
  • AIRFLOW__CODE_EDITOR__GIT_AUTHOR_EMAIL
  • AIRFLOW__CODE_EDITOR__GIT_INIT_REPO
  • AIRFLOW__CODE_EDITOR__ROOT_DIRECTORY
  • AIRFLOW__CODE_EDITOR__LINE_LENGTH
  • AIRFLOW__CODE_EDITOR__STRING_NORMALIZATION
  • AIRFLOW__CODE_EDITOR__MOUNT, AIRFLOW__CODE_EDITOR__MOUNT1, AIRFLOW__CODE_EDITOR__MOUNT2, ...
  • AIRFLOW__CODE_EDITOR__IGNORED_ENTRIES

Example:

   export AIRFLOW__CODE_EDITOR__STRING_NORMALIZATION=True
   export AIRFLOW__CODE_EDITOR__MOUNT='name=data,path=/home/airflow/data'
   export AIRFLOW__CODE_EDITOR__MOUNT1='name=logs,path=/home/airflow/logs'
   export AIRFLOW__CODE_EDITOR__MOUNT2='name=tmp,path=/tmp'

REST API

Airflow Code Editor provides a REST API. Through this API, users can interact with the application programmatically, enabling automation, data retrieval, and integration with other software.

For detailed information on how to use each endpoint, refer to the API documentation.

REST API Authentication

The API authentication is inherited from the Apache Airflow.

If you want to check which auth backend is currently set, you can use airflow config get-value api auth_backends command as in the example below.

$ airflow config get-value api auth_backends
airflow.api.auth.backend.basic_auth

For details on configuring the authentication, see API Authorization.

Development Instructions

  1. Fork the repo

  2. Clone it on the local machine

  git clone https://github.com/andreax79/airflow-code-editor.git
  cd airflow-code-editor
  1. Create dev image
  make dev-image
  1. Switch node version
  nvm use
  1. Make changes you need. Build npm package with:
  make npm-build
  1. You can start Airflow webserver with:
  make webserver
  1. Run tests
  make test
  1. Commit and push changes

  2. Create pull request to the original repo

Links

airflow-code-editor's People

Contributors

andreax79 avatar dependabot[bot] avatar dolfinus avatar dreraic avatar snyk-bot avatar spalletto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

airflow-code-editor's Issues

Mixed Content exception

Background:

I deployed airflow and airflow-code-editor behind a proxy that handles the SSL termination.

Description

When I go to code_editor home or click a folder under left navigator, the page tries to fetch data by calling
https://mydomain.com/code_editor//tree/files?long=true, but a 308 redirect returned with a location
http://mydomain.com/code_editor/tree/files?long=true. The scheme changed from https to http, which resulted in a complaining from broswer with exception Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '<URL>'. This request has been blocked; the content must be served over HTTPS. and page could not load appropriately.

Not working with Ver 2.0.2

I have set up airflow ver2.0.2 with airflow-code-editor but stuck in the issue:
image
also, the log said this while I am trying to install the module:
image
Please help.
I am not using docker for this

Compatibility with v2.0.0?

I just installed the plugin (v2.4.0) on v2.0.0b2 and I see

Broken plugin: [airflow_code_editor.airflow_code_editor] No module named 'flask_admin' 

Is there already compatibility with v2.0?

[Feature] "New file" button

Hi.

Thank you for this package, it is really saved my day!

How about adding "New file" button?
Currently there is only one option to make new file - open the existing one and then use "Save as" button with entering new file location.
But sometimes there are no files in the dags folder. In case of completely new installation the only way to create first file is to to that using some external tool, like file manager or console.

IMHO this will be really useful feature.

importlib-metadata error

Getting this error. The importlib-metadata was yestarday updated to 2.0.0

Broken plugin: [airflow_code_editor.airflow_code_editor] (importlib-metadata 2.0.0 (/usr/local/lib/python3.7/site-packages), Requirement.parse('importlib-metadata<2,>=0.23; python_version == "3.7"'), {'argcomplete'})

Dag file editor can browse files, but cannot open it - file not found

After upgrading apache-airflow from 2.2.3 to 2.3.3, started getting error while trying to open files thru dag-code-editor 6.0.0.

I can navigate in all folders, see all files, but when trying to open any of them "file not found" issue shows up

2022-08-11 11_04_36-Window

2022-08-11 11_04_44-Window

Currrent folder config:

[core]
dags_folder = /data/airflow/dags

[code_editor]
 root_directory = /data/airflow

'file not found' error for JSON files

Hello,

I am experiencing a bug where I cannot open an existing .json file. This bug happens if I use the UI to create the json file from scratch and if I upload a file created using the JSON module from my local machine. The file will continue to show up in the folder browser and I can manipulate it (move/rename). When clicking the json file, it opens a blank file editor with the message in the top left 'file not found'.

I have confirmed with my server admin that the file exists on the server with the contents I used when creating it. The file is also readable by a DAG. Strangely, I have been able to open the file once or twice successfully and view/edit the contents, but after a short period it will become un-openable.

Any help would be greatly appreciated

support webserver base_url

when multiple airflow webserver run behind nginx with base_url, editorSave post to "/code_editor/files", which expect to be prefix with webserver base_url

Dag loads slowly

Hi, I'm using the airflow of docker deployment. Currently, if I'm saving the script file/A /b/c/d.sh in the code_editor multilevel directory, it will take about two minutes for the daG screen to show this task. If I'm directly saving the script in the root directory of daG (for example, as /d.sh), IT will take about two minutes for the daG screen to show this task. This will show up on the DAG page very quickly, what are the optimizations for this load delay

working with aws MWAA

Hi,

I would like to solve
https://stackoverflow.com/questions/72726969/how-can-we-use-airflow-code-editor-or-simple-dag-editor-on-aws-airflow-mwaa/73454971#73454971

I follow every Andrea instruction but it doesn't work.
I will post more info here to help

Our configuration :

MWAA airflow version is 2.2.2

To setup airflow-code-editor :
I added the code_editor.mount envariable in MWAA (name=dags,path=s3://our_bucket)
I added this to my requirements

# plugins
black  # for airflow-code-editor
fs-s3fs # for airflow-code-editor
airflow-code-editor>=7.0.0

MWAA has been tested with s3:* on * permissions

What works:

airflow-code-editor is accessible
in the "files" folder we fine our dags
in the "dags" folder we fine our dags
reading dags

What doesn't work:

upload does nothing
+new open an editor, the button save make the following error
Error saving dag/new file.txt: operation failed, [Errno 30] Read-only file system: b'/usr/local/airflow/dags/'
opening a dags and clicking save
Error saving tutorial_dag_from_airflow.py: operation failed, [Errno 30] Read-only file system: b'/usr/local/airflow/dags/tutorial_dag_from_airflow.py'

What I can do to help

I would take me a bit of time to anonymize but I could provide the terraform code to reproduce
I also can write PR with a bit of guidance for where to search the bug

Thanks
Regards
Hugo

Supports DAG custom save directories

Currently, files are saved in the /dag directory by default. It is expected that customized directories can be saved and the corresponding directories can be viewed on the webui

Unable to overwrite default dag folder

I am trying to change root_directory to some other folder which is not the default dag folder set in airflow.cfg

But it is not reflecting in the dag code editor

Airflow Code Dag Editor 2.4.0 does not work with Airflow version 1.10.11

I am getting this error when I install the airflow_code_editor (v 2.4.) with airflow (1.10.11) - any ideas how to resolve?
Thanks in advance.

$ airflow version
[2020-10-30 12:59:54,616] {plugins_manager.py:112} ERROR - Failed to import plugin airflow_code_editor
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/airflow/plugins_manager.py", line 106, in load_entrypoint_plugins
    plugin_obj = entry_point.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2323, in load
    self.require(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2346, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 783, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (attrs 19.3.0 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('attrs>=20.1.0'), {'cattrs'})

Traceback (most recent call last):
  File "/usr/local/bin/airflow", line 26, in <module>
    from airflow.bin.cli import CLIFactory
  File "/usr/local/lib/python3.6/dist-packages/airflow/bin/cli.py", line 94, in <module>
    api_module = import_module(conf.get('cli', 'api_client'))  # type: Any
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/local/lib/python3.6/dist-packages/airflow/api/client/local_client.py", line 24, in <module>
    from airflow.api.common.experimental import delete_dag
  File "/usr/local/lib/python3.6/dist-packages/airflow/api/common/experimental/delete_dag.py", line 26, in <module>
    from airflow.models.serialized_dag import SerializedDagModel
  File "/usr/local/lib/python3.6/dist-packages/airflow/models/serialized_dag.py", line 33, in <module>
    from airflow.serialization.serialized_objects import SerializedDAG
  File "/usr/local/lib/python3.6/dist-packages/airflow/serialization/serialized_objects.py", line 28, in <module>
    import cattr
  File "/usr/local/lib/python3.6/dist-packages/cattr/__init__.py", line 1, in <module>
    from .converters import Converter, GenConverter, UnstructureStrategy
  File "/usr/local/lib/python3.6/dist-packages/cattr/converters.py", line 16, in <module>
    from attr import fields, resolve_types
ImportError: cannot import name 'resolve_types'

I tried updating attrs to 20.2.0 but then got this error with airflow.

$ airflow version
[2020-10-30 12:48:56,337] {plugins_manager.py:112} ERROR - Failed to import plugin airflow_code_editor
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/airflow/plugins_manager.py", line 106, in load_entrypoint_plugins
    plugin_obj = entry_point.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2323, in load
    self.require(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2346, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 783, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (attrs 20.2.0 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('attrs~=19.3'), {'apache-airflow'})
Traceback (most recent call last):
  File "/usr/local/bin/airflow", line 26, in <module>
    from airflow.bin.cli import CLIFactory
  File "/usr/local/lib/python3.6/dist-packages/airflow/bin/cli.py", line 94, in <module>
    api_module = import_module(conf.get('cli', 'api_client'))  # type: Any
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/local/lib/python3.6/dist-packages/airflow/api/client/local_client.py", line 24, in <module>
    from airflow.api.common.experimental import delete_dag
  File "/usr/local/lib/python3.6/dist-packages/airflow/api/common/experimental/delete_dag.py", line 26, in <module>
    from airflow.models.serialized_dag import SerializedDagModel
  File "/usr/local/lib/python3.6/dist-packages/airflow/models/serialized_dag.py", line 33, in <module>
    from airflow.serialization.serialized_objects import SerializedDAG
  File "/usr/local/lib/python3.6/dist-packages/airflow/serialization/serialized_objects.py", line 28, in <module>
    import cattr
  File "/usr/local/lib/python3.6/dist-packages/cattr/__init__.py", line 1, in <module>
    from .converters import Converter, GenConverter, UnstructureStrategy
  File "/usr/local/lib/python3.6/dist-packages/cattr/converters.py", line 18, in <module>
    from ._compat import (
  File "/usr/local/lib/python3.6/dist-packages/cattr/_compat.py", line 31, in <module>
    from typing import get_args, get_origin  # NOQA
ImportError: cannot import name 'get_args'

Disable Plugin

How can I disable the plugin? I want to disable it in higher environments.

Plug-in broken after v2.7.0 update: No module ‘psslib’

Describe the bug
Plug-in is broken after migrating to airflow v2.7.0. , Python 3.11.4.

To Reproduce
Steps to reproduce the behavior: install the plug-in on 2.7.0

Error displayed the Airflow UI — “Broken plugin: [airflow_code_editor.airflow_code_editor] No module named ‘psslib’”

Screenshots
If applicable, add screenshots to help explain your problem.

Server (please complete the following information):

  • Airflow Code Editor version: latest version
  • Airflow version: 2.7.0
  • Environment: docker
  • OS: Centos 8

Client(please complete the following information):

  • Browser: all browsers
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Cannot rename/remove file if git is not installed

I installed this and I am able to create and edit new file but got permission denied while trying to rename or remove the file. May I know what is the solution for this? I'm using airflow inside docker. Thanks

Not working with latest Airflow Helm Chart

Hi,

First of all: thank you for this great idea and work!!! Unfortunately, I couldn't manage to use it when deployed to an AKS via the latest airflow helm chart, using airflow version 2.8.3: any dag-py file (that I create with this plugin) and store under /opt/airflow/dags doesn't either show up in the dag section - or it isn't added to DagBag when using airflow dags reserialize. The logs don't reveal much more information.

Is it possible that the plugin can't be used in the aks context?

Thanks for your help!!

Feature Request: file Upload support in Editor

Thanks for building this amazing plugin. Pretty useful for data engineers, avoids them to go through deployment process for minor code change.

Everything is fine. But if lacks few basic functionalities like file upload.

Font Awesome is missing

Hello.

I've installed airflow-code-editor 3.3.1 on Airflow 1.10.14. Extension works great, but I don't see any icon:
изображение

According to template:

<sidebar-section title="Files" icon="fa-home" :items="items" :limit="100" section="mounts" :stack="stack" :history-view="historyView" :workspace-view="workspaceView" :current="current"></sidebar-section>
<sidebar-section title="Git Workspace" icon="fa-briefcase" :items="items" :limit="5" section="workspace" :stack="stack" :history-view="historyView" :workspace-view="workspaceView" :current="current"></sidebar-section>
<sidebar-section title="Local Branches" icon="fa-code-fork" :items="items" :limit="5" section="local-branches" :stack="stack" :history-view="historyView" :workspace-view="workspaceView" :current="current"></sidebar-section>
<sidebar-section title="Remote Branches" icon="fa-globe" :items="items" :limit="5" section="remote-branches" :stack="stack" :history-view="historyView" :workspace-view="workspaceView" :current="current"></sidebar-section>
<sidebar-section title="Tags" icon="fa-tags" :items="items" :limit="5" section="tags" :history-view="historyView" :stack="stack" :workspace-view="workspaceView" :current="current"></sidebar-section>

you're using icons from Font Awesome pack.

But Airflow v1 is using glyphicons:
https://github.com/apache/airflow/blob/4aec433e48dcc66c9c7b74947c499260ab6be9e9/airflow/www/static/bootstrap-theme.css#L2573-L2606

Airflow v2 is using Material icons:
https://github.com/apache/airflow/blob/fdea6226742d36eea2a7e0ef7e075f7746291561/airflow/www/static/css/material-icons.css#L20-L27

And also I don't see this font in static dir either:
https://github.com/andreax79/airflow-code-editor/blob/ffa14b4fbb10257bb9ec1efb77d0e376df166a96/airflow_code_editor/templates/index_head.html

How is that possible that there are no mentions of Font Awesome usage in both Airflow and aifrlow-code-editor, but icons are present in the README file? Could you please add it to the static files folder?

Permission Denied error when opening code editor

Hi,

I'm running the Airflow webserver in a docker container and getting a permission denied popup window in the code editor UI upon opening that window:

screenshot1

Wondering if you can help me troubleshoot? I'm guessing it has something to do with the airflow user in the container not having permission to a folder used by the local git install, but not sure how to find out what exactly is being denied.

Here is my Dockerfile:

FROM puckel/docker-airflow:1.10.9

USER root

COPY airflow.cfg ./airflow.cfg
COPY /dags ./dags
COPY entrypoint.sh /entrypoint.sh
COPY requirements.txt /requirements.txt

# Add directory in which pip installs to PATH
ENV PATH="/usr/local/airflow/.local/bin:${PATH}"

# Install Git for airflow-code-editor:
RUN apt update
RUN apt install -y git

USER airflow

ENTRYPOINT ["/entrypoint.sh"]

# Just for documentation. Expose webserver, worker and flower respectively
EXPOSE 8080
EXPOSE 8793
EXPOSE 5555

The entrpoint.sh script is omitted for brevity, but just know that it calls pip install on requirements.txt, which contains only this dependency:

# requirements.txt
airflow-code-editor==2.1.1

If I attach the running container interactively, I can successfully call git with the airflow user, so again - wondering if there's a directory created somewhere specific for airflow-code-editor (when I was the root user) that the airflow user does not have access to?

Cannot read properties of undefined (reading 'href')

Hi,

We wanna try your code editor, we had no troubles during installation. But when we tried to change theme. We've got this error:

TypeError: Cannot read properties of undefined (reading 'href')
at Proxy.setTheme (Editor.vue:178:116)
at Proxy.updateSettings (Editor.vue:188:18)
at tn (runtime-core.esm-bundler.js:155:22)
at pt (runtime-core.esm-bundler.js:164:21)
at Mc (runtime-core.esm-bundler.js:721:9)
at Proxy.ok (SettingsDialog.vue:68:18)
at b.onClick.t..t. (SettingsDialog.vue:21:27)
at tn (runtime-core.esm-bundler.js:155:22)
at pt (runtime-core.esm-bundler.js:164:21)
at HTMLButtonElement.n (runtime-dom.esm-bundler.js:369:13)

in console of web interface. Is there anything I miss ?

Thank

working on gcp

Hello, i ve installed the plugin via gpc console and after restarting the web server the module doesn't appear in admin menu.
anyone was able to make it working?
Thanks

Airflow 2.0 installation issue

Currently trying to install airflow-code-editor plugin. I'm using docker-compose-CeleryExecutor.yml from puckel for Airflow 2.0. I cloned the airflow-code-editor repository into my plugins folder and added it into my requirements.txt as well. I'm getting these errors on the webserver. How can I go about fixing this so I can use the plugin?

image

enviroment error

export AIRFLOW__CODE_EDITOR__MOUNT2_PATH='/tmp

it is should
export AIRFLOW__CODE_EDITOR__MOUNT2_PATH=/tmp

Push dags from code editor

Hi, Is it possible to push dags to git repository using code editor? Currently I have installed code editor and donot see this option. However I can stage changes.

Appreciate any help on this topic?

Thanks,
Kamesh Rao

DAG Serialization

Since Airflow 2.0.0 DAG Serialization has been standard (and cannot be turned off). This seems to be a problem for airflow-code-editor, since the webserver no longer has access to the DAG files. Is there a way around this?

airflow-code-editor on Airflow Composer(GCP) doesn't detect composer folders - dag, data, log, etc.

Describe the bug
I'm working with Airflow Composer (GCP), I installed the airflow-code-editor PyPI library, and when I entered to the code editor, he did not detect the composer DAGS(GCS) and any GCS folder, I also tried to set the "root_directory" and "mount"s Config Options, and I also install fs-gcsfs.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Airflow composer Version: 2.6.3+composer -> admin -> Dags Code Editor
  2. Composer folders/buckets not detected.

Expected behavior
To see all the Composer folders( DAGS, data, logs, etc...)

Screenshots
image

Server (please complete the following information):

  • Airflow Code Editor version: 7.5.0
  • Airflow version: composer-2.5.1-airflow-2.6.3
  • Environment: GCP composer

Client(please complete the following information):

  • Browser chrome
  • Version 123.0.6312.58 (Official Build) (arm64)

REST end points?

Is it possible for this package to expose the endpoints used in UI as REST? I have a custom UI based on react and want to integrate the APIs only from this package. Any help is highly appreciated.

Current API is only working with cookies not with basic auth.

Unbale to access the code editor

I have installed the code editor and git via ubuntu wsl on windows.
I have added my airflow conf file as follows,
[code_editor]
git_cmd = /usr/bin/git
git_default_args = -c color.ui=true
git_init_repo = False
root_directory = /home/imthi/airflow/dags
line_length = 88
string_normalization = False
mount_name = data
mount_path = /home/imthi/airflow/data
mount1_name = logs
mount1_path = /home/imthi/airflow/logs

While i am trying to launch it through UI, it says no such a file or directory found
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.