You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/13 20:55:51 UTC

[GitHub] [airflow] hedrickw opened a new issue #13659: Operator Extra Links not showing up on UI

hedrickw opened a new issue #13659:
URL: https://github.com/apache/airflow/issues/13659


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**: 2.0
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`): 1.18
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: AWS
   - **OS** (e.g. from /etc/os-release): Linux
   - **Kernel** (e.g. `uname -a`): Linux
   - **Install tools**:
   - **Others**:
   
   **What happened**: 
   Followed the Example Here: https://airflow.apache.org/docs/apache-airflow/stable/howto/define_extra_link.html#define-an-operator-extra-link, and was expecting Link to show up on UI but it does not :( 
    
   ![image](https://user-images.githubusercontent.com/23406205/104509302-52f65080-559e-11eb-9459-2815f8bb5573.png)
   
   
   ```
   class GoogleLink(BaseOperatorLink):
       name = "Google"
   
       def get_link(self, operator, dttm):
           return "https://www.google.com"
   
   
   class MyFirstOperator(BaseOperator):
       operator_extra_links = (
           GoogleLink(),
       )
       @apply_defaults
       def __init__(self, **kwargs):
           super().__init__(**kwargs)
   
       def execute(self, context):
           self.log.info("Hello World!")
           print(self.extra_links)
   
   ```
   
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**: I expected a Button Link to show up in Task Instance Model
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**: Follow Example here on Airflow 2.0 https://airflow.apache.org/docs/apache-airflow/stable/howto/define_extra_link.html#define-an-operator-extra-link
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil closed issue #13659: Operator Extra Links not showing up on UI

Posted by GitBox <gi...@apache.org>.
kaxil closed issue #13659:
URL: https://github.com/apache/airflow/issues/13659


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb commented on issue #13659: Operator Extra Links not showing up on UI

Posted by GitBox <gi...@apache.org>.
ashb commented on issue #13659:
URL: https://github.com/apache/airflow/issues/13659#issuecomment-759738022


   Operator links need to be registered via a plugin to appear in the UI -- sorry the docs are wrong on this point.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] hedrickw commented on issue #13659: Operator Extra Links not showing up on UI

Posted by GitBox <gi...@apache.org>.
hedrickw commented on issue #13659:
URL: https://github.com/apache/airflow/issues/13659#issuecomment-759739657


   @ashb Ah that makes sense, thanks!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] potiuk commented on issue #13659: Operator Extra Links not showing up on UI

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #13659:
URL: https://github.com/apache/airflow/issues/13659#issuecomment-759741392


   Also you can do it via custom providers if you choose to bundle several custom operators into an installable python package: http://airflow.apache.org/docs/apache-airflow-providers/index.html#how-to-create-your-own-provider - that also adds a possibility to add custom connections.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org