Skip to content
Snippets Groups Projects
Verified Commit 93c5b224 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Separate archived tracking into models

parent 812a892e
No related branches found
No related tags found
No related merge requests found
Pipeline #100320 failed
......@@ -156,8 +156,6 @@ module LiudeskCMDB
end
end
read_fields :archived
def create
data = client.post(self.class.api_url, self.class.model_version, data_for_write(all: true))
load_data(JSON.parse(data))
......
......@@ -9,7 +9,7 @@ module LiudeskCMDB::Models
identifier :guid
supports_search
read_fields :guid, :created_date, :updated_date, :name
read_fields :guid, :created_date, :updated_date, :name, :archived
access_fields \
:division, :asset_owner, :status, :stolen,
:capital_equipment_id, :capital_object_id, :supplier, :supplier_article_number,
......
......@@ -20,7 +20,7 @@ module LiudeskCMDB::Models
identifier :hostname
read_fields :created_date, :updated_date
read_fields :created_date, :updated_date, :archived
access_fields \
:hostname, :division, :asset_owner, :certificate_information,
:network_access_role, :hardware_id,
......
......@@ -8,7 +8,7 @@ module LiudeskCMDB::Models
identifier :hostname
read_fields :created_date, :updated_date
read_fields :created_date, :updated_date, :archived
access_fields \
:hostname, :division, :asset_owner, :certificate_information,
:network_access_role, :hardware_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment