Skip to content

Conversation

@Kami
Copy link
Member

@Kami Kami commented Jun 29, 2018

Right now we use functions prefix for dynamically loaded functions in Orchestra.

This means orchestra functions are installed in "functions" package. This is bad because "functions" is a generic name and could cause name collisions.

We should either use orchestra_functions (top level package) or orchestra_runner.functions (if we want to nest / namespace it under orchestra / orchestra_runner package).

In this PR, I went with the flat orchestra_functions approach.

ubuntu@ip-172-31-2-183:/var/log/st2$ ls -la /opt/stackstorm/st2/lib/python2.7/site-packages/functions
total 36
drwxr-xr-x   2 root root  4096 Jun 29 08:28 .
drwxr-xr-x 276 root root 20480 Jun 29 08:00 ..
-rw-r--r--   1 root root     0 Jun 29 02:37 __init__.py
-rw-r--r--   1 root root   158 Jun 29 02:37 __init__.pyc
-rw-r--r--   1 root root  1867 Jun 29 08:28 st2kv.py

Kami added 4 commits June 29, 2018 10:17
orchestra functions.

Using just "functions" means those functions will be copied / installed
into "functions" package which could conflict with actual package named
functions.
@Kami Kami added this to the 2.8.0 milestone Jun 29, 2018
Copy link
Member

@enykeev enykeev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see no problem with renaming to avoid collisions

@Kami Kami merged commit 915ebfc into master Jun 29, 2018
@Kami Kami deleted the kvp_changes branch June 29, 2018 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants