Skip to content

Commit 14e98ca

Browse files
authored
Merge pull request #5922: Misc cleanups
2 parents 7fe538a + f4babd2 commit 14e98ca

File tree

11 files changed

+13
-12
lines changed

11 files changed

+13
-12
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Added
1616
to pants' use of PEX lockfiles. This is not a user-facing addition.
1717
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
1818
#5846 #5853 #5848 #5847 #5858 #5857 #5860 #5868 #5871 #5864 #5874 #5884 #5893 #5891
19-
#5890 #5898 #5901 #5906 #5899 #5907 #5909
19+
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922
2020
Contributed by @cognifloyd
2121

2222
* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805

contrib/packs/actions/pack_mgmt/unload.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
from st2common.persistence.pack import Pack
2121
from st2common.persistence.pack import ConfigSchema
2222
from st2common.persistence.pack import Config
23-
from st2common.persistence.reactor import SensorType
24-
from st2common.persistence.reactor import TriggerType
25-
from st2common.persistence.reactor import Trigger
26-
from st2common.persistence.reactor import Rule
2723
from st2common.persistence.action import Action
2824
from st2common.persistence.action import ActionAlias
2925
from st2common.persistence.policy import Policy
26+
from st2common.persistence.rule import Rule
27+
from st2common.persistence.sensor import SensorType
28+
from st2common.persistence.trigger import Trigger
29+
from st2common.persistence.trigger import TriggerType
3030
from st2common.constants.pack import SYSTEM_PACK_NAMES
3131
from st2common.services.triggers import cleanup_trigger_db_for_rule
3232
from st2common.exceptions.db import StackStormDBObjectNotFoundError

contrib/packs/tests/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ python_tests(
44
"test_action_download.py": {
55
"dependencies": [
66
# imports tests.fixtures which is ambiguous. Tell pants which one to use.
7-
"contrib/packs/tests/fixtures",
7+
"./fixtures",
88
],
99
}
1010
},

lockfiles/st2-constraints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Add/remove version constraints for transitive dependencies in this file
22
# (transitive dependencies are dependencies of our direct dependencies).
3+
# Then run `./pants generate-lockfiles --resolve=st2` to regenerate the lockfile.
34
#
45
# Direct dependencies should be recorded in `requirements-pants.txt`, not here.
56

requirements-pants.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Add/remove direct 3rd party dependencies here, with version constraints if necessary.
2+
# Then run `./pants generate-lockfiles --resolve=st2` to regenerate the lockfile.
23
#
34
# Please do not add transitive dependencies in this file (ie dependencies of our dependencies).
45
# Use `lockfiles/st2-constraints.txt` to constrain the version of these transitive dependencies.

st2common/st2common/cmd/purge_executions.py

100755100644
File mode changed.

st2common/st2common/cmd/purge_rule_enforcements.py

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
"""
17-
A utility script that purges trigger instances older than certain
17+
A utility script that purges rule enforcements older than certain
1818
timestamp.
1919
2020
*** RISK RISK RISK. You will lose data. Run at your own risk. ***

st2common/st2common/cmd/purge_tokens.py

100755100644
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515

1616
"""
17-
A utility script that purges trigger instances older than certain
18-
timestamp.
17+
A utility script that purges tokens older than certain timestamp.
1918
2019
*** RISK RISK RISK. You will lose data. Run at your own risk. ***
2120
"""

st2common/st2common/cmd/purge_traces.py

100755100644
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414

1515

1616
"""
17-
A utility script that purges trigger instances older than certain
18-
timestamp.
17+
A utility script that purges traces older than certain timestamp.
1918
2019
*** RISK RISK RISK. You will lose data. Run at your own risk. ***
2120
"""

st2common/st2common/cmd/purge_trigger_instances.py

100755100644
File mode changed.

0 commit comments

Comments
 (0)