Comments (2)
Thanks @yabwon !
I think a user-specific auto-exec is a great idea. This would need to be saved at backend so that it can be available across different browser sessions.
This is probably a good point to enable home directories for users. Then, we can add the autoexec to the home dir, allowing the autoexec to be easily viewed and edited.
The implementation would therefore require:
- Creating a
/Users
top level directory underSAS_PATH
- When a new user (or the default desktop user) logs in for the first time, a subdirectory is created with their userid, eg
/users/allan
- In desktop or non-admin mode, the user just sees
/users/$username
. Admins will see every user under the top-level/users
folder. - An empty
/Users/allan/autoexec.sas
file is also created
When launching a SAS session (executor.ts), the autoexec.sas
file is copied (if it exists) from the user folder to the session folder (as user-autoexec.sas
).
The SAS executor is also updated with the following code injected into the code.sas program: %inc "$(SAS_PATH)/sessions/$(sessionid)/user-autoexec.sas";
IMPORTANT - this behaviour should only happen for the /CODE/ExecuteSASCode
API (not Stored Program requests)
from server.
With the latest(v0.3.2) version, you can set autoexec to ~/.sasjs-server/user-autoexec.sas
in DESKTOP mode.
from server.
Related Issues (20)
- JS / Python / R session folders should be NEW folders, not existing SAS folders HOT 2
- JS Stored Program calling SASjsApi issue HOT 3
- should show loading spinner on login screen while request is in process HOT 2
- `[object Object]` when opening *.json files from SASjs Drive HOT 1
- Studio Editor autocomplete invisible HOT 1
- new users should automatically be added to the 'All Users' group HOT 3
- MongoServerError: The 'expireAfterSeconds' option is supported on '_ts' field only. at Connection.onMessage HOT 1
- prevent brute force attacks HOT 1
- show ERRORs and WARNINGs in SAS Log HOT 1
- Need API endpoint for list of client ids HOT 1
- Reset Admin Password Capability HOT 2
- SASjs server crashes with WPS calling -nologo on SAS command line HOT 2
- Support PRINT destination natively HOT 2
- Cover functionality related to displaying log with tests
- COSMOS DB support for new users HOT 2
- replace ID with UID
- API: some unit tests are failing
- Show appropriate response on SAS Licence expiry
- Enable Open ID Connect (OIDC)
- Executable @sasjs/server file should pick up environment variables from local `.env` file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.