Drupal7 workflow "publish node" trigger action - drupal-7

I was configuring my drupal 7 installation.
I made a simple publishing workflow:
Draft->Submit->Public
Now when I go to configuring triggers for the workflow, I want to make the node "published" and "brought to front page" when it moves from Submit to Public
However, the choose action dialog doesn't show me that option. It shows me only one "node" action:
[change workflow state of node to next state]
I was hoping for an option like [publish node] & [bring it on front page]
How do I trigger the node to be published via the workflow trigger config?

Related

Trying to show a refresh snackbar when the new version of the app is deployed (Service Worker)

I want to show a snack bar to reload the page when the new version of the page is deployed and available. But in that deploy, the service worker file is the same as before because I didn't make changes on it, so it does not trigger the update.
when I deploy some modification in the service worker file it does trigger the snack bar.
I followed this tutorial: https://felixgerschau.com/create-a-pwa-update-notification-with-create-react-app/#service-workers-in-create-react-app
Maybe this approach with service worker is not the right one for what I'm trying to accomplish.

spring-dev-tools does not reloading changes in project, Intellij idea

Maven dependency spring-boot-devtools does not reloading changes in a project automatically.
I have solved this problem by changing parameters of "running configuration".
Go to edit configuration->
In the Spring boot section you will see -
Running Application Update Polices - options
change - "On 'Update' action - to -> Update trigger file
and - "On frame deactivation - to -> Update classes and resources.
Apply changes and press OK.
I have solved this problem by changing parameters of "running configuration".
Go to edit configuration-> In the Spring boot section you will see -
Running Application Update Polices - options
change - "On 'Update' action - to -> Update trigger file and - "On frame deactivation - to -> Update classes and resources.
Apply changes and press OK.
The problem has been fixed for me after following the below steps.
Please go to the Top Right Corner of your "IntelliJ IDE" and then click on the ellipsis symbol (three vertical dots)->choose "Configure Edit Tabs"
Expand "Build, Execution and Deployment" -> Compiler-> Check the option "Build Project Automatically"
Click on "Advanced Settings" -> Select the Check the option under Compiler
-> "Allow auto-make to start even if developed application is currently running"
Please note that I'm using the "IntelliJ IDEA 2022.2" version.
Hope this helps!

Azure SQL Alerts to integrate with TEAMS

I am trying to integrate Azure SQL Alerts with Teams. I have created webbook and the link I got paste it into Azure action group. When I run a test it has fail output. So then I have created runbook and within the runbook created webbook. The link I got from the webbook I inserted into the action group when run test it was successful. I can see the alert in the azure runbook/webbook but didn't come trough TEAMS.
Please Follow these steps to achieve the Alert goals
Step 1: Create a blank Logic App
• For this step, you need to login to the Azure portal and create a new Logic App. Once you’re in the right place, click on the Add menu and select the Logic App type you want to create. The available types are: Standard and Consumption. You can find all the necessary info in the page Pricing and billing models for Azure Logic Apps at link
Step 2: Configure the Logic App
• In the Logic App designer page, click on the When a HTTP request is received. This will be our trigger .
• After the selection, you will be presented with the Logic App designer canvas. This is where we will do all our remaining configurations starting with the trigger activity we just added
• Configure the activity with the JSON schema that the trigger will use. Since the request will contain the alert’s JSON payload, you can refer (and use) the sample schema you can find in the article Common alert schema definitions at link .Copy the sample alert payload from the page, click on Use sample playload to generate schema, paste the content and click Done
• To create a condition used to decide which notification activity to use, click on the New Step, in the search box type Control
• Select the Control group and then select the Switch activity to add it to the canvas. For groups with lots of activities, you can enter the activity name or part of it in the search box.
Once added, this activity needs some configuration:
Team ID,Channel, Message
As far as the Team ID and the Channel go, you can select Azmon alert,With regards to the Message body part, this is representing the information sent through the notification. Here you can enter static text formatted as you like, dynamic content as well as formulas. In my example I started with a kind of title and followed with sections under which there are the info I wanted to send. For the static text, you just need to write it. For the dynamic content and/or formulas, once you decided the line where to put it, click on Add dynamic content and select it from the side panel click in the Message canvas and either select it from the Dynamic content list or assemble it using the Expression builder
In this post, since I got everything correctly parsed from the trigger activity (the When a HTTP request is received), I will go use the dynamic content only. For instance, after having put some text like – Alert Id: I will select alertId content from the list
Step 3: Configure the Action Group
configure an Action Group to use it in order receive our alerts as expected.From the Azure Monitor blade
• From the Alerts page, click on Manage actions
• Click on New action group
• Enter the necessary basic information and click on Next: Notifications
• Configure the following according to what has been created before:
o Action type
o Name
o Selected
• making sure to enable the common alert schema and select and create
Step 4: Add the new action group to your alerts
we have the Action group created and configured; we need to add it to all the alerts we want to notify
• From the Alerts page, click on Manage alert rules
• In the Actions section, add the new action group to the existing one (or remove them if not necessary
• Select the newly created (and de-select the selected ones if necessary) and click Select
• Click Save to save and apply the changes
Step 5: Test
Refer below doc
link

Google Smart Home Action not visible in Home Control section

I made some changes to Authorization URL and Token URL in Accounting Linking. After that when I enable Test l, the action with [test] prefix didn't appear under Home Control section in Google Home app. The app is logged in with the same account as the account which I used to create the action. To add up, the action is already being deployed in production. I'm facing this issue when I updated the Account Linking settings and enabled it for Testing. I've also tried undeploying the previous version of the action. But still it didn't appear in the Home Control. Due to this I can't submit my action for review.
Help me out to fix this . Thanks in advance.
Once your Action is deployed to production, the project will no longer reflect console changes to the test agent until those changes are submitted and reviewed. The recommended way to work around this constraint is to create a second project in the Actions console that you can use to test/validate your change.
When you're ready to submit the updates to production, you can follow the steps outlined to updating your existing production project in Launching your smart home Action.

Assign users to another company while delete a company Drupal 7

Am working with a affliate management site developed in drupal 7
Actually what I want to do is to assign the company users to another company while we delete a company.
We can assign the users to another company via bulk operation.
But how can we achieve the same while we delete a company.
Can any one help me to solve this issue?
Drupal version :7.X
Now:
When we click on edit , there is a popup come with a delete button in the end of page.
When we click on delete button it will take users to delete confirmation page. once click on the delete button in confirmation page, data get deleted.
Requirement:
We need to show the same bulk operation drop down in the delete confirmation window.
Can anyone please suggest how can we achieve this task.
The hook that is responsible for the confirmation step is node_delete_confirm and for deletion node_delete_confirm_submit.
So you have to create a rules action like the one you have but it will run on the "before deleting a node" event. There are some useful issues for this.
Alternatively, there is a module that hooks into the deletion process of nodes: Predelete.

Resources