Skip to content

Commit

Permalink
Next (#23)
Browse files Browse the repository at this point in the history
* Added users and organisations api methods

User Session

Logging in/out

Users

Get User

Update User

Activate User

Request Password

Reset Password

Organizations

Get All Organizations

Get Single Organization

Organization Roles

Organization Users

Transfer Organization Ownership

Organization Stacks

Organization Logs

* added requirements.txt file

* loaded install, changlog , codeowners and release.yml file

* Organized package structure

* Developed stack Implementation

* Code Optimized

* Added Mock test and Api Test cases

* Added test cases and coverage packages

* Added API documentation and added stacks test cases

* Added coverage reports generartion in github action

Added coverage report github action
Changed methods name
Changed unit test cases
Code improvements
API Documentation

* Added global fields class

* - General code improvements
- Corrected few testcases
- Single place for credentials
- linting added

* Feat/cs 40287 workflow class implemetation (#14)

* feat: ✨ implemented branches and aliases with unit and api test cases

* test: ✅ added mock tests for branches and aliases

* docs: 📝 added api documentation for branches and aliases

* feat: ✨ content type implementation with api references, unit test cases and api test cases

* test: renamed the api, mock, unit test file names of branch and alias

* test: renamed file path in branch and alias mock tests

* test: improved coverage report for branches and aliases

* test: Added mock test cases for content type

* docs: 📝 Cleared typo errors

* test: removed unwanted test files

* refactor: Code improvement for branches, aliases and content type implementation

* - General code improvements
- Testcases improvements

* - General code improvements
- Testcases improvements

* - General code improvements
- Formats are updated

* code enhancement

* Created Entry class and test cases

Created Entry Class
created entry class test cases

* feat: ✨ asset class implementation with tests and api docs

* Code improvements and changed test cases to new structure

* test: ✅ added resources and made some changes in api and unit test cases

* Updated Unit test cases.

* Webhook class Implementation

* Created workflow class

* Deleted secrets-scan.yml file

* Updated variable name

* Deleted sast-scan.yml file

* Feat/cs 40545 metadata class implemetation (#15)

* Metadata class implementation

* Deleted sast-scan.yml file

* Fixed PR comments

* Code optimisation and handling custom error exception

* Removed uids

* Feat/cs 40549 roles class implementation (#16)

* Created roles class with unit testcases, mock test cases and api test cases

* Updated coverage report github workflow file

* Added coverage install command

* Added pytest install command

* Updated stack class unit test file

* Added html coverage

* Added coverage reports and visualizations

* Removed visualisation

* Generating coverage report in svg format

* Added coverage-badge  install command

* Fixed PR comments and code optimisation

* Added coverage reports graphical visualisation in github page

* Created readme file

* changed variable name

* Updated readme file

* Update README.md

* Added auditlog class and license file (#17)

* Added auditlog class and license file

* Added test case for invalid inputs

* commented the idiom

It Allows You to Execute Code When the File Runs as a Script, but Not When It’s Imported as a Module

---------

Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>

* Developed environment class implementation (#19)

* Developed environment class implementation

* Updated variable name

* Added CI-CD implementation (#20)

* Added CI-CD implementation

Added CICD implemetation
Updated code Optimization
Updated code for check package in test environment.

* Removed Unused files

* Feat/cs 41198 locale class implementation (#21)

* Added locale class implementation

* Implemented  taxonomy support (#22)

---------

Co-authored-by: harshithad0703 <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>

---------

Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: Shailesh Mishra <[email protected]>
Co-authored-by: harshithad0703 <[email protected]>
  • Loading branch information
4 people authored Sep 8, 2023
1 parent 6c82cc1 commit d4e1cde
Show file tree
Hide file tree
Showing 342 changed files with 23,613 additions and 23 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added .github/.DS_Store
Binary file not shown.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
11 changes: 0 additions & 11 deletions .github/workflows/sast-scan.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/secrets-scan.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Coverage Report

on: [push] # You can adjust the trigger events as needed

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11 # Choose the appropriate Python version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # If you have a requirements file
pip install coverage
pip install pytest
pip install coverage-badge
- name: Run tests and coverage
run: |
coverage run -m pytest tests/unit/
coverage report --include="tests/unit/*" -m > coverage_report.txt
coverage xml --include="tests/unit/*" -o coverage.xml
coverage html --include="tests/unit/*"
coverage-badge -o coverage.svg
- name: Upload coverage artifact
uses: actions/upload-artifact@v2
with:
name: coverage-report
path: |
coverage_report.txt
coverage.xml
htmlcov
coverage.svg
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,14 @@ dmypy.json

# Pyre type checker
.pyre/
tests/config/default.yml

.talismanrc
.vscode/settings.json
run.py
tests/resources/.DS_Store
.talismanrc
tests/.DS_Store
tests/resources/.DS_Store
.DS_Store
.talismanrc
15 changes: 15 additions & 0 deletions .idea/contentstack-management-python.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d4e1cde

Please sign in to comment.