How to filter adobe rules in console tab? - adobe-launch

I have recently learned working on Adobe Launch. I wanted to know in the console tab on a webpage which rules are getting fired and which are not met. I used the launch and DTM Switch and it gave me the names of all the rules but I wanted them to be filtered. For example:- if I want to look at the rules that are being fired then rules which are not met should not be in the list.
Seeing the rules using launch and DTM switch is time consuming and error prone.
Can someone please help me with this thing?

Ok so 2 options to enable Adobe Launch Debugging in console.
First one is to type _satellite.setDebug(true) in the developer console.
Second is to install Adobe Launch command https://chrome.google.com/webstore/detail/launch-command/nkjhamgjeocefocmpbcjfmohkjgildki and switch the Debug switch.
In each case you will need to reload your page.
You will notice logs that are now present prepended by 🚀 in your developer console.
These are the Adobe Launch debug logs and the ones when you use _satellite.logger.log
To see which rules fired which means there met the event and conditions and actions was executed then filter by fired in your developer console.
You will see something like 🚀 Rule "name of my rule" fired.
You can also see the rules that did not fire for specific reason by looking at logs:
🚀 Condition "my condition name" for rule "my rule name" was not met.
I would advise you to create tagging naming standards: https://dev.to/alcazes/adobe-launch-tagging-standards-3aak as it will help you read the logs.

Related

Devices created with smart-home-java sample always offline

I have created a couple of devices using the https://github.com/actions-on-google/smart-home-java sample project. I have also successfully linked my account and see these devices in my Google Home app. I am also able to click on a "On" or "Off" button next to the Lamp device, and I see the value change in Firestore.
However, when I click on the device it says "Not responding" on the top and "Offline" in the middle of the screen. I do not see any errors in the "smart-home-java" server logs.
Has anyone else experienced something similar? How should I approach debugging this?
As mentioned briefly in the comments, this is likely because your project is failing to successfully call Report State. The most likely cause of this is that your Home Graph API credentials are missing or incorrect.
In the current sample code, an error in this method call will cause the handler to return deviceOffline from a QUERY. You can also comment out or remove this line to debug the issue.

How to fix "Does not provide fallback content when JavaScript is not available" in audit in PWA?

I have made a angular application and I want to test it in audit but in PWA under audit, i got error in PWA optimized section like
Does not provide fallback content when JavaScript is not available
I have even written <noscript>Please enable javascript</noscript> in index.html file. I have not got this error when i ran audit in localhost by starting http-server but the same thing i am checking on server then it gives red mark in PWA optimized section? How to solve this ?
This is the error:
Usually, Adding the <noscript> block on your page would take care of this... I had gone around this myself on my website
Referring to Google's site (which i visited today after your question, we see the description:
Given these considerations, this Lighthouse audit performs a simple
check to ensure that your page isn't blank when JavaScript is
disabled. How strictly your app adheres to progressive enhancement is
a topic of debate, but there's widespread agreement that all pages
should display at least some information when JavaScript is disabled,
even if the content is just an alert to the user that JavaScript is
required to use the page.
For pages that absolutely must rely on JavaScript, one approach is to
use a element to alert the user that JavaScript is required
for the page. This is better than a blank page, because the blank page
leaves users uncertain about whether there's a problem with the page,
their browsers, or their computers.
I suspect that when you disable javascript via chrome, you might end up with just the text "Please enable javascript"; Try also placing
an image, a backup navigation (which runs in case of no JS only)
a backup footer (which runs in case of no JS only)

Oracle ADF - Redirect link is not working

I am developing a simple application using ADF comes with basic CRUD operations (create, read, update, delete). In this case, as you can see, I have dragged a link to the 1st column which is highlighted in yellow.
So whenever I deploy it and click that, it is supposed to redirect me to the Edit page where client will allow to make commit:
I did make sure the Action of link is associated with the Edit page (as highlighted in yellow above). However, the link wouldn't redirect me anywhere, no response.This is the unbounded task flow:
Okay so I have found out the solution. Due to the default setting, the application will be deployed on IE and this message will prompt out. As you can see, the message is mentioning about browser's compatibility. My IE is version 11.6, I'm not sure what's the issue here since my IE is kinda latest version but this message still pops out and affects the redirect link from working. However, simply copy the application URL to Google Chrome and run should fix this issue. Hope this helps in future.
If the two pages in the Unbounded Task Flow, then Add WildCard Control Flow Rule
and connect the two pages with the WildCard.
Or you can use the Popup instead of opening a new page for edit

Check_mk event triggered

I am using checK_mk 1.2.6p12 version I want to trigger an event on arrival of certain messages of crictical state.
But I am unable to find where to put my shell script so that it performs actions if something goes down.
please help me out am stuck on it.In my Global Settings no error console options is showing.
Not sure 1.2 is the same, maybe it helps for 1.4 version or you already solved it.
Go to Event Console, click in Settings.
Create an Action, and choose in the "Type of Action" choose "Execute via Shell Script" and write your own script.
Create a Rule Pack.
Create a Rule with "Match syslog priority" option to CRITICAL.
Send an event and see if it trigger your Action.

How can I disable the Publish button in EPiServer's content editor?

I have an EPiServer project which is using the sequential workflow to validate content changes. This works fine, however we have a slight issue where content reviewers are just clicking Publish when they are happy with an editor's work. What they should be doing is using the workflow task window and indicating their approval through that.
To enforce this behaviour I would like to disable the Publish button in the content editor under certain circumstances (i.e. when there is an outstanding workflow task linked to the current page).
Does anyone have any ideas how I can do this, or even an alternative solution to the problem altogether?
Actually, I think you may want to revisit your workflow logic.
If a user with publishing rights publishes a page: that should be considered an approval. You could easily hook up to the Published event to see if the page is part of a currently running workflow.

Resources