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

Specify service:base template value for infotech model elements #4054

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions synapse/models/infotech.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ def getModelDefs(self):

('it:host', ('guid', {}), {
'interfaces': ('inet:service:object',),
'template': {'service:base': 'host'},
'doc': 'A GUID that represents a host or system.'}),

('it:log:event:type:taxonomy', ('taxonomy', {}), {
Expand Down Expand Up @@ -784,36 +785,43 @@ def getModelDefs(self):
}),
('it:dev:repo', ('guid', {}), {
'interfaces': ('inet:service:object',),
'template': {'service:base': 'repository'},
'doc': 'A version control system instance.',
}),
('it:dev:repo:remote', ('guid', {}), {
'doc': 'A remote repo that is tracked for changes/branches/etc.',
}),
('it:dev:repo:branch', ('guid', {}), {
'interfaces': ('inet:service:object',),
'template': {'service:base': 'repository branch'},
'doc': 'A branch in a version control system instance.',
}),
('it:dev:repo:commit', ('guid', {}), {
'interfaces': ('inet:service:object',),
'template': {'service:base': 'repository commit'},
'doc': 'A commit to a repository.',
}),
('it:dev:repo:diff', ('guid', {}), {
'doc': 'A diff of a file being applied in a single commit.',
}),
('it:dev:repo:issue:label', ('guid', {}), {
'interfaces': ('inet:service:object',),
'template': {'service:base': 'repository issue label'},
'doc': 'A label applied to a repository issue.',
}),
('it:dev:repo:issue', ('guid', {}), {
'interfaces': ('inet:service:object',),
'template': {'service:base': 'repository issue'},
'doc': 'An issue raised in a repository.',
}),
('it:dev:repo:issue:comment', ('guid', {}), {
'interfaces': ('inet:service:object',),
'template': {'service:base': 'repository issue comment'},
'doc': 'A comment on an issue in a repository.',
}),
('it:dev:repo:diff:comment', ('guid', {}), {
'interfaces': ('inet:service:object',),
'template': {'service:base': 'repository diff comment'},
'doc': 'A comment on a diff in a repository.',
}),
('it:prod:soft', ('guid', {}), {
Expand Down Expand Up @@ -1046,6 +1054,7 @@ def getModelDefs(self):

('it:host:tenancy', ('guid', {}), {
'interfaces': ('inet:service:object',),
'template': {'service:base': 'host tenancy'},
'doc': 'A time window where a host was a tenant run by another host.'}),

('it:software:image:type:taxonomy', ('taxonomy', {}), {
Expand All @@ -1054,6 +1063,7 @@ def getModelDefs(self):

('it:software:image', ('guid', {}), {
'interfaces': ('inet:service:object',),
'template': {'service:base': 'software image'},
'doc': 'The base image used to create a container or OS.'}),

('it:storage:mount', ('guid', {}), {
Expand Down
Loading