I developed new Airflow plugin that let's you edit the source of your dag files:
https://github.com/ohadmata/simple-dag-editor
The plugin is installed in a new scope (View).
To enable a better integration I want to add new button to the default DAG view that redirect to my plugin and open the editor on the selected dag file.
It is possible to do that using the airflow plugin interface?
I am talking about this line of buttons:
As I said, I want to add a button with url like this: http://airflow/dag_editor?id=dag_id
Thanks!
Related
I've created a plugin that generates some web resources that need to be compiled using the sbt-webpack plugin. Ideally my plugin would just have a task bundle that will generate some resources and then it will bundle them with the webpack task from the sbt-webpack plugin.
What is the right way to incorporate tasks from different plugins into the code defining my tasks in my plugin?
Declaring a dependency on another plugin should be enough. You need to add this line to your auto-plugin:
override def requires = stejskal.sbt.WebpackPlugin
This will ensure that sbt-webpack is enabled whenever your plugins is and its settings will be loaded before the ones you define in your plugin. Plus whatever keys sbt-webpack adds to its autoImport object will be available to the users of your plugin as well.
I've designed a site at my own domain and I now want to implement the same design on a clients domain.
All is done in Visual Composer and the clients site have the exact same conditions and plugins for a migration to work, but I can't seam to find a "export Visual Composer design" option anywhere on the web!
The hard way to do it is to have two windows open and manually create the same design by going element to element, tab to tab, which really isn't an option...
The Templatera plugin only seam to work on the same domain.
Does anyone have a better solution?
I have discovered an easiest way.
This is just change the layout to text. or deactivate the visual composer plugins. then it will show only a written code on each page.
Just copy the codes in the page from where you want to copy and paste the code to other domain's page where you want to put.
Then reactivate the visual composer plugins in both site.
Building on Ali Hayder Shawon answer, here's a simple solution that does not require to deactivate the plugin:
Click on the "Classic mode" button in the source editor (screenshot below).
Select all text in the text editor (screenshot below).
Paste it in the destination editor, making sure that it is too in classic mode.
Screenshot for step 1:
Screenshot for step 2:
You need save your design to to My Templates (Saved Templates), then you can export and import to client site. I know a free plugin can do it, try search "VC Templates Import & Export".
I have created a shopify application. While I click on "install app" button from the application store of shopify, it's directly redirect to me in a callback URL. But what I want is: when click on "install app" button I need to display a confirm screen before installation.
See this for reference: ( I want to make like this).
For the reference jpg.
Shopify does this for you the first time the app is installed. It's a similar process to how Facebook and Twitter apps work. The first time you try and use it a permissions screen + confirmation button will pop up. Subsequent installations won't do that since the shop has already authorized the application.
There are lot of configuration options on plone control panel, for example "security settings".
I need to pre-set for checking "enable user folders " option, it should be immediately effect when a plone site created.
How do I configure control panel settings from a generic setup profile?
It's often a good idea to create a policy product that'll be installed to initialize your site. In your case, your policy product would only have a GS profile.
To get what you're asking, the easiest way would be to simply, make the change on a vallina plone site, then export the GS settings of your site and then use that in your product.
To export the current settings for your site:
go to the zmi(append /manage onto site url)
go to portal_setup
go to export tab
scroll down and click to export all profiles
You import a changed version of the "controlpanel.xml" GenericSetup file. Some details on the controlpanel.xml file are at http://plone.org/documentation/manual/developer-manual/generic-setup/reference/control-panel, and the general procedure for working with GenericSetup is at http://plone.org/documentation/manual/developer-manual/generic-setup. You also may find http://collective-docs.readthedocs.org/en/latest/components/genericsetup.html helpful.
In creating a plugin, how can I add a version update reminder for anyone using my plugin? This plugin will not be on Wordpress.org but on my own site. I am assuming the plugin checks on my server for a specific file and if the check version is same, no alert but if it is different an alert message will show? But how? Any direction would be appreciated.
The second part of this question is how to write the plugin to allow auto update like any plugins on wordpress? This way they can just click update and the plugin will just update.
Thanks.
I wouldn't host the plugin on your site for security reasons. There have been cases of malware hidden in plugins in the past and it's advised to get plugins from wp.org.
As for the alert system, you should use wp-cron.php to regularly check the txt file hosted on your server.