Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init db script #2

Merged
merged 2 commits into from
Jun 16, 2022
Merged

init db script #2

merged 2 commits into from
Jun 16, 2022

Conversation

pasqualespica
Copy link
Contributor

@pasqualespica pasqualespica commented Jun 14, 2022

The purpose of this PR is to add py script to init document DB for GPS

List of Changes

Add py script cosmos_init_db.py under pagopa-spontaneous-payments/utilities folder.

To run it :

cp .env.exmaple .env
pip install python-dotenv && pip install azure-cosmos
python cosmos_init_db.py

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: ['bug', 'enhancement', 'breaking-change', 'ignore-for-release']

@sonarcloud
Copy link

sonarcloud bot commented Jun 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@pasqualespica pasqualespica merged commit 182e9f0 into main Jun 16, 2022
@pasqualespica pasqualespica deleted the init-db-scripts branch June 16, 2022 13:17
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.

1 participant