How to get KNIME workflow name within a workflow - knime

Which node do I need to get a KNIME workflow name within the workflow? I am using KNIME version 2.11, and would like to add this information to the table being created.

For others who came across this in Google search, you can use "Extract Context Properties" under IO>Other categories. This will give you the flow variable port, which will contain the workflow name.
I've used "Variable to Table Column" then "Unpivoting" nodes to turn it into a table.

Related

Searching for keywords in multiple code repositories - Palantir Foundry

I was wondering if there is a way to search for keywords in the code through multiple code repositories at once? Preferably I would like to specify a subset of repositories i.e. only those with a marking or organization, and then for a given keyword it would return the matched line together with the source repository and file.
If not wrong, it is impossible inside Foundry, but...
I would suggest a workaround.
You could clone the repository locally in your machine and then, opening the synced folders using VS Code, use its search feature, that is able to go through different folders content.
Clone function is available inside each code-repo, and in order to proceed you will need both a git client and VS Code installed locally.

TF293000: The data warehouse has detected data conflicts for the following work item fields

Hi I'm looking for help with the following issue:
In TFS on our SSRS report server whenever I run any of the out the box Sprint Burndown reports the report seems to run successfully but I get the following error in the bottom right hand corner:
Through some research I found that the issue was due to the field definitions in that particular Collection not matching the other collections that we have in TFS. Simple...
In order to determine which field definition in the collection was the issue I used the witadmin command listfields for all of my collections:
witadmin listfields /collection:Collection /n:Microsoft.VSTS.Common.ReviewedBy
This led me to find that the Synchronizes Identity Name Changes definition in the collection mentioned in the TF293000 error was set to a value of true, while it is false in all of my other collections. Issue Found! Should be easy from here...wrong.
The following command should solve my problem:
witadmin changefield /collection:Collection /n:Microsoft.VSTS.Common.ReviewedBy /syncnamechanges:false
*of course with the proper collection url subbed in for the word Collection
However when run and after I confirm that I want to make the change I get the following error:
TF401327: The operation is not supported. The feature is obselete.
I look the error up and it takes me to this page TFS Known Issue which tells me it's a known issue but was resolved in update 1 ... we have update 3.
I then attempted to simply edit the WIT .xml file and update the attribute for that WIT on that collection with false, but when I import the change to the server it tells me it has imported successfully however when I export it I see that the file has not changed.
I have also tried copying the the .xml file from the same WIT in another collection and uploading that to the offending collection and that will not work. I've never had an issue with uploading a WIT as we've made several changes to our TFS workflow before. I'm pretty stuck at this point and just wondering if anyone else has experienced this issue before, thanks!
According to the error info, seems there is a conflict in the TFS Data warehouse and this because 2 fields in different collection has different attributes in the data warehouse as it’s only one data warehouse. To avoid schema conflicts when you export and process data to the data warehouse databases, you must assign the same values to these attributes across all collections:
Field type (the value for this field cannot be changed for an
existing field).
Reporting type.
Reporting name.
What you have done is the correct operation, change/update the attribute for the field in one project collection to match the assignments that are made in other project collections.
You could try to narrow the issue, if this issue only happened on that specific field in the team project collection. All other work item filed working correctly? Also give a try with other collections, such as change the syncnamechanges=true, then set it back to syncnamechanges=false, to see if any issue occurs.
Run the command line on TFS sever machine instead of your develop machine. Clear TFS cahce. And if the filed is not use for reporting about those project collections, you could also try to mark it as non-reportable. More details please refer below links:
Resolve data warehouse schema conflicts
Change a reportable attribute for a work item field

Get GitLab "my projects" tab as JSON or XML?

Is it possible to get serialized output of some sort from the /dashboard/projects screen in GitLab?
(I want to track differences and alert myself when someone assigns me a new project. One option is of course to build a script that iterates through the HTML pages, but if there's a way to get all projects at once -- preferably in a machine-friendly format -- that's even better.)
I think that usually this kind of alert are not strictly needed, because usually the assignment workflow is about issue/MR assignment (which usually end up in a email in you inbox), anyway..
You should take a look at GitLab API or, even better, use an already existing project like Python GitLab
It is a Python client implementation of GitLab API and also have an handy gitlab command line tool that can give you the required data in a human/machine readable format

Zabbix, naming hostname in templates

Initially, I wanted a way to change when I receive a notification for free hard disk space, which I have successfully done. However, I would like to implement this rule on one of the existing templates rather than individually add it to each host. However, when I do attempt to add the trigger by using the expression {hostname:vfs.fs.size[drive:,pfree].last(0)}<5, I am confused as to what to put as the hostname, since I am trying to put this in a template for multiple hosts.
I have tried to name it the template name that consists of the hosts, but have been unsuccessful.
Thanks!
Trigger are associated with hosts they reference items from. To create a trigger "in" a template, reference an item from that template like so:
{template_name:vfs.fs.size[drive:,pfree].last(0)}<5

Capture build parameters as html report in Jenkins

As part of release management process, there can exist parallel releases targeting to overlap on environments.
Whats the best way to capture build parameters in Jenkins and add to a custom HTML report.
Like i want to see the following in the report ...
1. Build parameters used in build#XXX of build_job_releaseYYY
2. Sort the tabular report of build parameters to see how many releases have gone through Test1 environment etc
The approach i was thinking ...
Create an xml node for every set of build parameter ..
Some how keep adding these nodes to an xml - buildReport.xml
Generate an html report BuildReport.xml from the buildReport.xml to display a table of the node
The html report should be sortable.
There is the simple parameterized build report which may do what you want as it list the build parameters used in individual builds
This report is available of the job page as a link