dbt-platform-helper 14.1.1__py3-none-any.whl → 15.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dbt-platform-helper might be problematic. Click here for more details.

@@ -29,6 +29,7 @@
29
29
  - [platform-helper secrets list](#platform-helper-secrets-list)
30
30
  - [platform-helper notify](#platform-helper-notify)
31
31
  - [platform-helper notify environment-progress](#platform-helper-notify-environment-progress)
32
+ - [platform-helper notify post-message](#platform-helper-notify-post-message)
32
33
  - [platform-helper notify add-comment](#platform-helper-notify-add-comment)
33
34
  - [platform-helper database](#platform-helper-database)
34
35
  - [platform-helper database dump](#platform-helper-database-dump)
@@ -668,7 +669,7 @@ platform-helper secrets list <application> <environment>
668
669
  ## Usage
669
670
 
670
671
  ```
671
- platform-helper notify (environment-progress|add-comment)
672
+ platform-helper notify (environment-progress|post-message|add-comment)
672
673
  ```
673
674
 
674
675
  ## Options
@@ -680,6 +681,7 @@ platform-helper notify (environment-progress|add-comment)
680
681
 
681
682
  - [`add-comment` ↪](#platform-helper-notify-add-comment)
682
683
  - [`environment-progress` ↪](#platform-helper-notify-environment-progress)
684
+ - [`post-message` ↪](#platform-helper-notify-post-message)
683
685
 
684
686
  # platform-helper notify environment-progress
685
687
 
@@ -712,6 +714,41 @@ platform-helper notify environment-progress <slack_channel_id> <slack_token>
712
714
 
713
715
  - `--commit-sha <text>`
714
716
 
717
+ - `--slack-ref <text>`
718
+ - Slack message reference of the message to update
719
+ - `--help <boolean>` _Defaults to False._
720
+ - Show this message and exit.
721
+
722
+ # platform-helper notify post-message
723
+
724
+ [↩ Parent](#platform-helper-notify)
725
+
726
+ Send Slack notifications. This creates (or updates if --slack-ref is provided) the top level message to the channel.
727
+
728
+ ## Usage
729
+
730
+ ```
731
+ platform-helper notify post-message <slack_channel_id> <slack_token>
732
+ <message>
733
+ [--build-arn <build_arn>] [--repository <repository>]
734
+ [--commit-sha <commit_sha>]
735
+ [--slack-ref <slack_ref>]
736
+ ```
737
+
738
+ ## Arguments
739
+
740
+ - `slack-channel-id <text>`
741
+ - `slack-token <text>`
742
+ - `message <text>`
743
+
744
+ ## Options
745
+
746
+ - `--build-arn <text>`
747
+
748
+ - `--repository <text>`
749
+
750
+ - `--commit-sha <text>`
751
+
715
752
  - `--slack-ref <text>`
716
753
  - Slack message reference of the message to update
717
754
  - `--help <boolean>` _Defaults to False._
@@ -14,7 +14,8 @@ def notify():
14
14
 
15
15
 
16
16
  @notify.command(
17
- help="Send environment progress notifications. This creates (or updates if --slack-ref is provided) the top level message to the channel."
17
+ help="Send environment progress notifications. This creates (or updates if --slack-ref is provided) the top level message to the channel.",
18
+ deprecated=True,
18
19
  )
19
20
  @click.argument("slack-channel-id")
20
21
  @click.argument("slack-token")
@@ -23,7 +24,41 @@ def notify():
23
24
  @click.option("--repository")
24
25
  @click.option("--commit-sha")
25
26
  @click.option("--slack-ref", help="Slack message reference of the message to update")
27
+ @click.pass_context
26
28
  def environment_progress(
29
+ ctx,
30
+ slack_channel_id: str,
31
+ slack_token: str,
32
+ message: str,
33
+ build_arn: str,
34
+ repository: str,
35
+ commit_sha: str,
36
+ slack_ref: str,
37
+ ):
38
+
39
+ ctx.invoke(
40
+ post_message,
41
+ slack_channel_id=slack_channel_id,
42
+ slack_token=slack_token,
43
+ message=message,
44
+ build_arn=build_arn,
45
+ repository=repository,
46
+ commit_sha=commit_sha,
47
+ slack_ref=slack_ref,
48
+ )
49
+
50
+
51
+ @notify.command(
52
+ help="Send Slack notifications. This creates (or updates if --slack-ref is provided) the top level message to the channel."
53
+ )
54
+ @click.argument("slack-channel-id")
55
+ @click.argument("slack-token")
56
+ @click.argument("message")
57
+ @click.option("--build-arn")
58
+ @click.option("--repository")
59
+ @click.option("--commit-sha")
60
+ @click.option("--slack-ref", help="Slack message reference of the message to update")
61
+ def post_message(
27
62
  slack_channel_id: str,
28
63
  slack_token: str,
29
64
  message: str,
@@ -35,7 +70,7 @@ def environment_progress(
35
70
  try:
36
71
  io = ClickIOProvider()
37
72
  slack_notifier = SlackChannelNotifier(slack_token, slack_channel_id)
38
- result = Notify(slack_notifier).environment_progress(
73
+ result = Notify(slack_notifier).post_message(
39
74
  original_message_ref=slack_ref,
40
75
  message=message,
41
76
  build_arn=build_arn,
@@ -6,7 +6,7 @@ class Notify:
6
6
  def __init__(self, notifier: SlackChannelNotifier):
7
7
  self.notifier = notifier
8
8
 
9
- def environment_progress(
9
+ def post_message(
10
10
  self,
11
11
  message: str,
12
12
  build_arn: str = None,
@@ -50,7 +50,7 @@ class PlatformHelperVersioning:
50
50
  )
51
51
 
52
52
  def get_required_version(self):
53
- platform_config = self.config_provider.load_and_validate_platform_config()
53
+ platform_config = self.config_provider.load_unvalidated_config_file()
54
54
  required_version = platform_config.get("default_versions", {}).get("platform-helper")
55
55
  self.io.info(required_version)
56
56
  return required_version
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dbt-platform-helper
3
- Version: 14.1.1
3
+ Version: 15.0.0
4
4
  Summary: Set of tools to help transfer applications/services from GOV.UK PaaS to DBT PaaS augmenting AWS Copilot.
5
5
  License: MIT
6
6
  Author: Department for Business and Trade Platform Team
@@ -1,4 +1,4 @@
1
- dbt_platform_helper/COMMANDS.md,sha256=EoQv3iEuSuqa65WyXY90WSnnq9xQXwsTJoWW-QlOqRw,22846
1
+ dbt_platform_helper/COMMANDS.md,sha256=szFwoNuKlrTfGv10jA0zLG_HDgRnzPaI4rBBSgFXtu8,23883
2
2
  dbt_platform_helper/README.md,sha256=B0qN2_u_ASqqgkGDWY2iwNGZt_9tUgMb9XqtaTuzYjw,1530
3
3
  dbt_platform_helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  dbt_platform_helper/addon-plans.yml,sha256=O46a_ODsGG9KXmQY_1XbSGqrpSaHSLDe-SdROzHx8Go,4545
@@ -11,7 +11,7 @@ dbt_platform_helper/commands/copilot.py,sha256=L9UUuqD62q0aFrTTEUla3A1WJBz-vFBfV
11
11
  dbt_platform_helper/commands/database.py,sha256=2RJZEzaSqcNtDG1M2mZw-nB6agAd3GNAJsg2pjFF7vc,4407
12
12
  dbt_platform_helper/commands/environment.py,sha256=zexiry6_dbOmD8w2lBrgdcFQKAG7XyJg9pvNtwtgPRk,3616
13
13
  dbt_platform_helper/commands/generate.py,sha256=4M0ZiGN2w-bwgPMxeItFfT6vA7sOMjuceHEN7RAYkhc,735
14
- dbt_platform_helper/commands/notify.py,sha256=H7QHbnYQnCD357Kesq7h16fT19imFI1BLtLA8x3ujTM,2504
14
+ dbt_platform_helper/commands/notify.py,sha256=DMXA0AHot6-7CMzmY0PXPMMBVnLgvQgXr6np6OnSQh4,3401
15
15
  dbt_platform_helper/commands/pipeline.py,sha256=PGpDDmyReVa4gdpXDwJEsHN51f5MgTIbm2AibTkuWrE,2580
16
16
  dbt_platform_helper/commands/secrets.py,sha256=haSbF401H4XLzS9LWGLC6h_EcZHLcIF-rW1XkzUOy58,3985
17
17
  dbt_platform_helper/commands/version.py,sha256=2GltWeeN7cqhVj9FhYWSbXSQSyNILHVNOeANGWtAllY,1097
@@ -25,10 +25,10 @@ dbt_platform_helper/domain/copilot.py,sha256=9L4h-WFwgRU8AMjf14PlDqwLqOpIRinkuPv
25
25
  dbt_platform_helper/domain/copilot_environment.py,sha256=fL3XJCOfO0BJRCrCoBPFCcshrQoX1FeSYNTziOEaH4A,9093
26
26
  dbt_platform_helper/domain/database_copy.py,sha256=AedcBTfKDod0OlMqVP6zb9c_9VIc3vqro0oUUhh7nwc,9497
27
27
  dbt_platform_helper/domain/maintenance_page.py,sha256=0_dgM5uZvjVNBKcqScspjutinMh-7Hdm7jBEgUPujrk,14529
28
- dbt_platform_helper/domain/notify.py,sha256=wTWBhFQkZG31V2OlZJVqzUPRTZqJxHtij9PAURXoxnU,1902
28
+ dbt_platform_helper/domain/notify.py,sha256=_BWj5znDWtrSdJ5xzDBgnao4ukliBA5wiUZGobIDyiI,1894
29
29
  dbt_platform_helper/domain/pipelines.py,sha256=BUoXlV4pIKSw3Ry6oVMzd0mBU6tfl_tvqp-1zxHrQdk,6552
30
30
  dbt_platform_helper/domain/terraform_environment.py,sha256=kPfA44KCNnF_7ihQPuxaShLjEnVShrbruLwr5xoCeRc,1825
31
- dbt_platform_helper/domain/versioning.py,sha256=L1PKuAnGtd1E6WT2cssC9hCVUibllntk-Tut8vdgJfk,5502
31
+ dbt_platform_helper/domain/versioning.py,sha256=kqx7P4iSjQxXJ58cTCdxTcTcJ-kYX7G28jMMlp_Zvc8,5497
32
32
  dbt_platform_helper/jinja2_tags.py,sha256=hKG6RS3zlxJHQ-Op9r2U2-MhWp4s3lZir4Ihe24ApJ0,540
33
33
  dbt_platform_helper/platform_exception.py,sha256=bheZV9lqGvrCVTNT92349dVntNDEDWTEwciZgC83WzE,187
34
34
  dbt_platform_helper/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -97,8 +97,8 @@ dbt_platform_helper/utils/messages.py,sha256=nWA7BWLb7ND0WH5TejDN4OQUJSKYBxU4tyC
97
97
  dbt_platform_helper/utils/template.py,sha256=g-Db-0I6a6diOHkgK1nYA0IxJSO4TRrjqOvlyeOR32o,950
98
98
  dbt_platform_helper/utils/validation.py,sha256=coN7WsKW_nPGW9EU23AInBkAuvUl1NfQvc2bjVtgs14,1188
99
99
  platform_helper.py,sha256=_YNNGtMkH5BcpC_mQQYJrmlf2mt7lkxTYeH7ZgflPoA,1925
100
- dbt_platform_helper-14.1.1.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
101
- dbt_platform_helper-14.1.1.dist-info/METADATA,sha256=CYSBwVMhzpjY9ONDgnXaomg8W-tdR2qohFXrTtLMyCM,3293
102
- dbt_platform_helper-14.1.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
103
- dbt_platform_helper-14.1.1.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
104
- dbt_platform_helper-14.1.1.dist-info/RECORD,,
100
+ dbt_platform_helper-15.0.0.dist-info/LICENSE,sha256=dP79lN73--7LMApnankTGLqDbImXg8iYFqWgnExGkGk,1090
101
+ dbt_platform_helper-15.0.0.dist-info/METADATA,sha256=t2pSFArbvOvniLssLuR9bq9ATpt_9TzVs8et5x_6xX8,3293
102
+ dbt_platform_helper-15.0.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
103
+ dbt_platform_helper-15.0.0.dist-info/entry_points.txt,sha256=QhbY8F434A-onsg0-FsdMd2U6HKh6Q7yCFFZrGUh5-M,67
104
+ dbt_platform_helper-15.0.0.dist-info/RECORD,,