Sonar: is it possible to give new projects permissions automated? - permissions

we are starting to use Sonar. We want to use it for many different projects. Is there a way to give a project automated defined project permissions (for example with a name pattern). We found only the way to create a default template for new projects, but with this template every project would have the same permissions and we would like to give them permissions based on name patterns...
Do you know if there is a way to do this?
Thanks and regards

This is not possible yet - as of SonarQube 4.0, but will be soon: feel free to watch and vote for SONAR-4535.

Related

How to execute the "AL:GO!" task as part of a script

Recently, my company started to focus Extension_v2 development for Dynamics NAV BC. We store our code in an internal Git-Server. So far, so good.
But startig a new project is still a very fiddly task. You have to create a repository, clone it, execute the AL Code-Task, move the files to the fitting location push the repository to the correct upstream etc. And all this does not include the first initial Steps (README, CHANGELOG and all other fundamental files...).
So I wanted to write a small PowerShell-Script, to do all these initial steps before being able to start working on the Project.
The Problem: I could not find a way to execute the "AL-GO!" task via script.
I have already searched the Internet and some forums for an answer... but it seems like microsoft did not consider the possibility to execute tasks from the AL-Language-Extension via script.
I also played around with the New-NAVAppManifest and the New-NAVAppManifestFile command for the old Extension_V1 development, but that did not do the trick.
I am looking for a fair and easy way to combine the creation of the app.json file and the launch.json file with other commands to easily initialize a new Project without haveing to write all commands manually. Maybe I did not recognize the easy solution. Or maybe this is just the way we have to do it in Extension_v2.
Anyway, thanks for all your help nevertheless.
Greetings.
Stay away from Ext V1. It's highly deprecated at this point.
First of all, why do you need to execute the "AL-Go!" via script? The "AL-Go!" command should already include all necessary steps to create an empty project including the launch.json and app.json. (minimal adjuments required dependent on your BC environment)
There is an extension/plugin for Git in Visual Studio Code which will handle all the repository stuff for you. You don't need to change file locations if everything is set up for Git. I rarely use it yet, but saw a demo for it on the Directions EMEA last year and I'm pretty sure it works at its current state (someone correct me if I'm wrong)
A way to implement the "AL-GO!" command for a script or for setting up additional steps in your project setup might be to write your own visual studio code extension/plugin which requires some additional know-how for that.
OR
You just change the settings/files of the default project, I bet there is at least a file for creating the initial AL project. Just change that to your requirements

Add individual user accounts

I am developing a project in ASP.NET CORE, it is already in progress, and there arose the need to create the login, however how to do this with the project already in progress? How to enter as Indivual User Accounts? I've seen several tutorials, but always starting from scratch, a new project, and the project is already started. What's the best way out?
On a general note, with modern frameworks that provide generators/scaffolding I sometimes end up just running the examples and then do a recursive compare between the existing project and the new project.
I can then carefully apply the necessary patches to bring the changes into the existing project
(This is useful for a number of things, - something I use it for more frequently is to bring a forgotten project up to date and streamline it.)
In ASP.NET Core 2.1 you can scaffold out identity into existing projects. See this guide on how to do this.

Working on a project with several guys - how to achieve it due to changes?

I'm working on a project with several developers and I need to systematically inform them about latest changes.
Any solution?
There's only one solution no matter how big is your project and how many guys are involved in.
It is called VCS (version control system).
I highly recommend you to use service like GitHub or BitBucket to have access to your code repository from all over the world. You can create a private repo and add your friends as collaborators, so only these people would have access to code.
Hope it will help.

How To Have VB.Net Installer Run My Code

I have been searching online for an answer for this question, but cannot find anything useful in my case. I added deployment to my project, but I want that deployment to copy JavaScript files to a certain dynamic location. The only way I can think of is having the deployment call my function that I can write in VB.net. If you guys have any idea on how to do this or some other ideas it would be appreciated. Thanks
Because I had a similar question to this, the easiest way is do this is...
Right-Click on the Solution, and go to Add - New Project.
New Project - (Setup/Deployment - Visual Studio Installer)
Under the "File System on Target Machine" - Add a new Folder that contains all the JavaScript items that you wish to deploy.
Change the Default Folder Location to your location that you intend for the Install process
For the folder properties for the Default Folder Location - use this link. It'll help a lot!
http://msdn.microsoft.com/en-us/library/aa372057(v=vs.80).aspx
That's the basic idea from what I gathered about your post.
Best,
Jimmy

how to share user preferences between projects with multiproject trac?

I've a multiproject trac setup that works perfectly for any single project, intertrac links are fine too. My only problem is that my users have to provide their preferences for every project. Is there an easy way to get around this and have user preferences shared among projects?
thanks, Viktor
You should take a look at the TracUserSyncPlugin that promise just that. Currently it's marked "beta" and "unfinished", so you may want to join in for more development, but at least you'll have a starting point.
There's not an easy way to do this that I know of. However, user preference data is stored in the database so it should be possible to write a script that synchronizes the preference data between the different databases.