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

Add API to deprecate local unit #2340

Merged
merged 16 commits into from
Dec 12, 2024

Conversation

Rup-Narayan-Rajbanshi
Copy link
Collaborator

@Rup-Narayan-Rajbanshi Rup-Narayan-Rajbanshi commented Dec 10, 2024

Addresses

Changes

  • Add api for depricate local unit and revert depricate.

Checklist

Things that should succeed before merging.

  • Updated/ran unit tests
  • Updated CHANGELOG.md

Release

If there is a version update, make sure to tag the repository with the latest version.

Copy link
Contributor

@szabozoltan69 szabozoltan69 left a comment

Choose a reason for hiding this comment

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

Please replace the string "epricate" to "eprecate" where it occurs in the files. :-)

@samshara samshara changed the title Feature/add api for depricate Add API to deprecate local unit Dec 10, 2024
Copy link
Member

@susilnem susilnem left a comment

Choose a reason for hiding this comment

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

Minor changes

local_units/views.py Outdated Show resolved Hide resolved
local_units/views.py Outdated Show resolved Hide resolved
local_units/views.py Outdated Show resolved Hide resolved
local_units/views.py Outdated Show resolved Hide resolved
Copy link
Member

@susilnem susilnem left a comment

Choose a reason for hiding this comment

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

LGTM!

local_units/serializers.py Outdated Show resolved Hide resolved
local_units/views.py Show resolved Hide resolved
local_units/serializers.py Outdated Show resolved Hide resolved
local_units/serializers.py Outdated Show resolved Hide resolved
local_units/serializers.py Show resolved Hide resolved
local_units/serializers.py Outdated Show resolved Hide resolved
Copy link
Member

@susilnem susilnem left a comment

Choose a reason for hiding this comment

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

Minor changes

@susilnem susilnem merged commit 528a3cd into project/localunit Dec 12, 2024
3 checks passed
@susilnem susilnem deleted the feature/add-api-for-depricate branch December 12, 2024 09:17
susilnem added a commit that referenced this pull request Dec 16, 2024
* WIP : Add api for deprecation of local unit.

* Add api and test case for deprecate api for local unit.

* Revert the depricated local-unit.

* Add api and test case for deprecate api for local unit.

* Fix test for local unit.

* Clean up after rebase.

* Remove duplicate deprecate function.

* Fix typo for deprecate.

* Pr fixes.

* Add validation for already existing local unit object.

* Modify test case for local unit.

* Add validation test for deprecate local unit.

* PR fixes.

* Fix failed test case for local unit.

* Add validation for deprecated_reason field in local unit.

* Change in deprecate api and serializer

---------

Co-authored-by: Sushil Tiwari <[email protected]>
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.

4 participants