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

chore: release 0.5.0 #189

Closed
wants to merge 77 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
aec4603
fix(config_management): don't exclude parent from field, only self
jon-nfc Jul 14, 2024
fbe7e63
fix(access): Correct team form fields
jon-nfc Jul 14, 2024
af3e770
fix(settings): correct the permission to view manufacturers
jon-nfc Jul 14, 2024
6776612
chore: move docker-compose to deploy directory
jon-nfc Jul 14, 2024
9acc4fd
docs(gitlab): update MR template
jon-nfc Jul 14, 2024
f1201e8
feat(access): Add multi-tennant manager
jon-nfc Jul 15, 2024
4ee62aa
test: refactor to single abstract model for inclusion.
jon-nfc Jul 15, 2024
d8e89be
test: tenancy objects
jon-nfc Jul 15, 2024
621cbd2
revert: return organization filtering back to forms
jon-nfc Jul 15, 2024
7c62309
fix(core): migrate manufacturer to use new form/view logic
jon-nfc Jul 16, 2024
7b26fac
feat: Administratively set global items org/is_global field now read-…
jon-nfc Jul 16, 2024
5a201ef
refactor!: Squash database migrations
jon-nfc Jul 9, 2024
30e0342
ci: temp change to release, on dev to be alpha release
jon-nfc Jul 12, 2024
a1759ec
ci: add alpha branch to docker builds and publish
jon-nfc Jul 16, 2024
9871cf2
Merge branch 'v-1-0-0-alpha' into 'development'
jon-nfc Jul 16, 2024
1f8244a
ci: use updated commitizen
jon-nfc Jul 16, 2024
fe64c11
bump: version 0.7.0 → 1.0.0-a1
nfc-robot Jul 16, 2024
416e029
revert: return ci build settings to not include branch alpha
jon-nfc Jul 17, 2024
60538e1
feat(base): show warning bar if the user has not set a default organi…
jon-nfc Jul 17, 2024
a67bc70
fix(api): correct inventory device search to be case insensitive
jon-nfc Jul 17, 2024
55197e7
fix(api): correct inventory operating system and it's linking to device
jon-nfc Jul 17, 2024
9a94ba3
feat(api): Inventory matching of device first by serial number
jon-nfc Jul 17, 2024
40350d1
feat(api): Inventory matching of device second by uuid
jon-nfc Jul 17, 2024
5bc5a4b
docs(worker): add worker and task logs
jon-nfc Jul 17, 2024
8457f15
fix(api): correct inventory operating system selection by name
jon-nfc Jul 17, 2024
5c74360
fix(base): dont show user warning bar for non-authenticated user
jon-nfc Jul 17, 2024
fa2b90e
bump: version 1.0.0-a1 → 1.0.0-a2
nfc-robot Jul 17, 2024
a5a5874
fix(itam): When changing device organization move related items too.
jon-nfc Jul 18, 2024
519277e
fix(itam): Device related items should not be global.
jon-nfc Jul 18, 2024
ebc2660
feat(itam): On device organization change remove config groups
jon-nfc Jul 18, 2024
e84e80c
feat(config_management): Prevent a config group from being able to ch…
jon-nfc Jul 18, 2024
9a1ca7a
fix(itam): remove org filter for software so that user can see instal…
jon-nfc Jul 18, 2024
adefbf3
fix(itam): remove org filter for operating systems so that user can s…
jon-nfc Jul 18, 2024
a3be950
fix(itam): remove org filter for device so that user can see installa…
jon-nfc Jul 18, 2024
7f22578
chore(settings): remove org filter as its not required
jon-nfc Jul 18, 2024
974a208
chore(config_management): remove org filter as its not required
jon-nfc Jul 18, 2024
2d0c3a6
fix(config_management): dont attempt to do action during save if grou…
jon-nfc Jul 18, 2024
8d6d1d0
bump: version 1.0.0-a2 → 1.0.0-a3
nfc-robot Jul 18, 2024
4f89255
feat(config_management): Group name to be entire breadcrumb
jon-nfc Jul 18, 2024
72ab925
feat(api): When processing uploaded inventory and name does not match…
jon-nfc Jul 18, 2024
ec1e7cc
test: placeholder for moving organization
jon-nfc Jul 18, 2024
8244676
test: ensure inventory upload matches by both serial number and uuid …
jon-nfc Jul 18, 2024
61b9435
bump: version 1.0.0-a3 → 1.0.0-a4
nfc-robot Jul 18, 2024
5188b3d
fix(itam): ensure installed software count is limited to users organi…
jon-nfc Jul 18, 2024
e5ce86a
fix(itam): ensure installed operating system count is limited to user…
jon-nfc Jul 19, 2024
034857d
ci: dev branch releases now beta
jon-nfc Jul 19, 2024
92a411b
docs(administration): explain the magic
jon-nfc Jul 19, 2024
f4e6852
bump: version 1.0.0-a4 → 1.0.0-b1
nfc-robot Jul 19, 2024
0798a67
docs(administration): spread the love out
jon-nfc Jul 19, 2024
9ea4fe1
ci: Create Version labels within repo on release
jon-nfc Jul 19, 2024
3a32c62
fix(itam): only show os version once
jon-nfc Jul 19, 2024
94576cc
ci: fix additional command as part of release
jon-nfc Jul 19, 2024
61fe059
bump: version 1.0.0-b1 → 1.0.0-b2
nfc-robot Jul 19, 2024
8a48902
ci: return command to release
jon-nfc Jul 20, 2024
5704560
fix(itam): Limit os version count to devices user has access to
jon-nfc Jul 21, 2024
4141443
bump: version 1.0.0-b2 → 1.0.0-b3
nfc-robot Jul 21, 2024
823ebc0
fix(access): Team model class inheritance order corrected
jon-nfc Jul 21, 2024
de53948
test: confirm that the tenancymanager is called
jon-nfc Jul 21, 2024
fc3f0b3
ci: add debug out to extra command
jon-nfc Jul 29, 2024
098e41e
feat(swagger): remove `{format}` suffixed doc entries
jon-nfc Jul 29, 2024
8d59462
fix(api): Ensure that organizations can't be created via the API
jon-nfc Jul 29, 2024
3a9e4b2
fix(api): confirm HTTP method is allowed before permission check
jon-nfc Jul 29, 2024
9b673f4
fix(api): cleanup team post/get
jon-nfc Jul 29, 2024
9e28722
Merge branch 'b3-fixes' into 'development'
jon-nfc Jul 29, 2024
289668b
bump: version 1.0.0-b3 → 1.0.0-b4
nfc-robot Jul 29, 2024
f5ba608
ci: var to export for use in script
jon-nfc Jul 31, 2024
968b3a0
feat(api): Ability to fetch configgroups from api along with config
jon-nfc Jul 31, 2024
4fd157a
test(api): test configgroups API fields
jon-nfc Jul 31, 2024
281d839
feat(api): Add device config groups to devices
jon-nfc Jul 31, 2024
213644a
test(api): Field existence and type checks for device
jon-nfc Jul 31, 2024
2f55024
fix(api): Ensure device groups is read only
jon-nfc Jul 31, 2024
a4b37b3
docs: Add dets of collection
jon-nfc Jul 31, 2024
3993cc9
Merge branch '160-api-config' into 'development'
jon-nfc Jul 31, 2024
c496d10
bump: version 1.0.0-b4 → 1.0.0-b5
nfc-robot Jul 31, 2024
fed0c5c
chore: artifacthub preperation
jon-nfc Aug 1, 2024
366579c
ci(github): add unit tests
jon-nfc Aug 1, 2024
5fa88a5
ci(github): add coverage
jon-nfc Aug 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .cz.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
commitizen:
name: cz_conventional_commits
prerelease_offset: 1
tag_format: $version
update_changelog_on_bump: false
version: 0.7.0
version: 1.0.0-b5
version_scheme: semver
93 changes: 93 additions & 0 deletions .github/workflows/code-coverage-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---

name: 'Process Coverage Artifact'

on:
workflow_run:
workflows:
- 'Unit Test'
types:
- completed


permissions:
contents: read
actions: read
checks: write


jobs:
report:
runs-on: ubuntu-latest
# strategy:
# max-parallel: 4
# matrix:
# python-version: ['3.12']
name: Coverage
steps:

- name: Run Tests
run: |
ls -l;

- name: Download Coverage Artifact
uses: actions/download-artifact@v4
with:
name: coverage-report-3.12
# path: coverage.xml
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}

- name: ls
if: success() || failure()
run: |
ls -l;

- name: Code Coverage Report
uses: irongut/CodeCoverageSummary@v1.3.0
with:
filename: coverage.xml
badge: true
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: false
indicators: true
output: both
thresholds: '60 85'


# - name: Add Coverage PR Comment
# uses: marocchino/sticky-pull-request-comment@v2
# if: github.event_name == 'pull_request'
# with:
# recreate: true
# path: code-coverage-results.md


- name: ls
if: success() || failure()
run: |
ls -l;

# - name: Adding markdown
# run: |
# cat $(ls *.md | tail -1) >> $GITHUB_STEP_SUMMARY

- name: create status check/comment for code coverage results
id: jest_coverage_check
uses: im-open/process-code-coverage-summary@v2.3.0
with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ github.token }}
summary-file: code-coverage-results.md
create-pr-comment: true
update-comment-if-one-exists: true
update-comment-key: "${{ env.GITHUB-JOB }}_${{ env.GITHUB-ACTION }}"

- name: Upload Coverage Summary
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: code-coverage-results-3.12
path: code-coverage-results.md
35 changes: 35 additions & 0 deletions .github/workflows/unit-test-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---

name: 'Process Unit Test Artifact'

on:
workflow_run:
workflows:
- 'Unit Test'
types:
- completed


permissions:
contents: read
actions: read
checks: write


jobs:
report:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:

- name: Test Report
uses: dorny/test-reporter@v1
with:
artifact: unit-test-results-${{ matrix.python-version }}
badge-title: 'Unit Tests [Python ${{ matrix.python-version }}]'
name: Unit Test Report [Python ${{ matrix.python-version }}]
path: '*.xml'
reporter: java-junit
128 changes: 128 additions & 0 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: 'Unit Test'

on:
push:
branches:
- "development"
tags:
- '*'
pull_request:
branches:
- "development"


jobs:
test:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.10', '3.11', '3.12']

steps:


- uses: actions/checkout@v4


- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}


- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt


- name: Run Tests
run: |
cd app;
pytest --cov --cov-report term --cov-report xml:../coverage.xml --cov-report html:../coverage/ --junit-xml=../unit.JUnit.xml **/tests/unit;


- name: Upload Test Report
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: unit-test-results-${{ matrix.python-version }}
path: unit.JUnit.xml


- name: Upload Coverage Report
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: coverage-report-${{ matrix.python-version }}
path: coverage.xml


- name: Upload Coverage
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: coverage-${{ matrix.python-version }}
path: coverage/*

# coverage:
# needs:
# - test
# runs-on: ubuntu-latest
# # strategy:
# # max-parallel: 4
# # matrix:
# # python-version: ['3.12']
# name: Coverage
# steps:

# # - name: Run Tests
# # run: |
# # ls -l;

# - name: Download Coverage Artifact
# uses: actions/download-artifact@v4
# with:
# name: coverage-report-3.12
# # path: coverage.xml
# # run-id: ${{ github.event.workflow_run.id }}
# # github-token: ${{ github.token }}


# - name: Add Coverage PR Comment
# uses: marocchino/sticky-pull-request-comment@v2
# if: github.event_name == 'pull_request'
# with:
# recreate: true
# path: code-coverage-results.md


# - name: ls
# if: success() || failure()
# run: |
# ls -l;

# - name: Code Coverage Report
# uses: irongut/CodeCoverageSummary@v1.3.0
# with:
# filename: coverage.xml
# badge: true
# fail_below_min: true
# format: markdown
# hide_branch_rate: false
# hide_complexity: false
# indicators: true
# output: both
# thresholds: '60 85'

# - name: ls
# if: success() || failure()
# run: |
# ls -l;

# - name: Summary
# run: |
# cat $(ls *.md | tail -1) >> $GITHUB_STEP_SUMMARY
Loading
Loading