MVVS: MV Basic for Visual Studio

 View Only

 Configuration into user-level profile

Manu Fernandes's profile image
PARTNER Manu Fernandes posted 03-02-2022 03:26
Hi all,

Is there some one with experience to define the config files at user-level's profile  ? c:\users\me\.rmv\config\...json
I'll define the db.mvbasic.json >
db{
    "host": "masterdev.infodata.lu",
    "userName": "me",
    "password": "mypasswd",
    "dataSource": "UNIVERSE",
    "port": 31438
}

then at directory level define db.mvbasic.json> db.account: myaccount 

and so I'll define format.mvbasic.json at user-level 's profile ? 

Any idea how to achieve it ? 

thanks by advance.
manu
Jingwen Li's profile image
ROCKETEER Jingwen Li
Hi Manu,

for "db" item in "db.mvbasic.json", it doesn't be support at user-level's profile. Because we think these properties have strong relationship with account folders / workspace folders. For example, "account" in every workspace folder is likely to be different. So does "groupview.mvbasic.json".

The formatting related settings could work at user-level profile,  but you need to restart VSCode when config file at user-level's profile is changed. I think that should be a bug to be fixed.

If you have any questions or suggestions, please feel free to contact us.

Thank you very much!
Manu Fernandes's profile image
PARTNER Manu Fernandes
hi  Jingwen Li 

Thanks for the response.

ok, I understand, but :

1/ if you run 50+ accounts on your development server, as we do, it's probably better to define host(s) profiles at user-level.
2/ if you work on the u2 server, as we do via RDP session, each developer work VSC at the 'account directory level' then it's impossible to define it's own user/passwd.

Then I'll propose an enhancement for a user-level 's profiles defn like :

~\.rmv\config\profiles.mvbasic.json

{
"profiles": [
     {
        "profile": "hostnameDev"
        "userName": "me",
        "password: "mypasswd"
     },
     {
        "profile": "hostnameProd",
        "userName": "me",
        "password: "mypasswd"
     }
]
}

\project\.rmv\db.mvbasic.json 

{
     "version": "1.0",
     "db": {
          "profile": "hostnameDev"
          "account": "myAccount"
     }
}


I hope you understand.
with kind regards
manu 

Chao Han's profile image
ROCKETEER Chao Han
Hi, Manu.
I have created an enhancement request for this, thanks.
Best Regards.
Charles.