Skip to content

1 implement endpoint check pleml#7

Open
Weilkiti wants to merge 5 commits intomainfrom
1-implement-endpoint-check-pleml
Open

1 implement endpoint check pleml#7
Weilkiti wants to merge 5 commits intomainfrom
1-implement-endpoint-check-pleml

Conversation

@Weilkiti
Copy link
Copy Markdown
Collaborator

Implemented and checked endpoint to check if the given project is contains PLEML (feature tree).

@Weilkiti Weilkiti linked an issue Mar 28, 2026 that may be closed by this pull request
@Weilkiti Weilkiti self-assigned this Mar 28, 2026
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

Retrieves the problem statement documentation element.
"""
query_url = mbse4u_sysmlv2.get_commit_url(server_url, project_id, commit_id)
query_url = mbse4u_sysmlv2_helpers.get_commit_url(server_url, project_id, commit_id)
part_usages = mbse4u_sysmlv2.get_elements_fromAPI(query_url, part_usages_ids)
found_contexts = mbse4u_sysmlv2.find_elements_specializing(server_url, project_id, commit_id, part_usages, context_type, 'PartUsage')
context_part = found_contexts[0] if found_contexts else None
query_url = mbse4u_sysmlv2_helpers.get_commit_url(server_url, project_id, commit_id)
Retrieves container for dependency relationships annotated with @FB.
"""
query_url = mbse4u_sysmlv2.get_commit_url(server_url, project_id, commit_id)
query_url = mbse4u_sysmlv2_helpers.get_commit_url(server_url, project_id, commit_id)
"""
print(f"Creating Feature Binding between {client_id} and {supplier_id}")
query_url = mbse4u_sysmlv2.get_commit_url(server_url, project_id, commit_id)
query_url = mbse4u_sysmlv2_helpers.get_commit_url(server_url, project_id, commit_id)
"""
print(f"Checking SYSMOD status for project {sysmod_project_id}")
query_url = mbse4u_sysmlv2.get_commit_url(server_url, project_id, commit_id)
query_url = mbse4u_sysmlv2_helpers.get_commit_url(server_url, project_id, commit_id)

print(f"Getting SYSMOD atlas for project {sysmod_project_id}")
query_url = mbse4u_sysmlv2.get_commit_url(server_url, project_id, commit_id)
query_url = mbse4u_sysmlv2_helpers.get_commit_url(server_url, project_id, commit_id)
print(f"get_metadatausage_annotatedElement_ids returns: {results}")
return results

def get_owned_usages(server_url, project_id, commit_id, owner, feature_kind = None, feature_name = None, includeInherited = True):

return owned_usages

def get_owned_parameters(server_url, project_id, commit_id, owner, parameter_kind = "parameter"):
# Copyright 2026 MBSE4U - Tim Weilkiens. Licensed under the Apache License, Version 2.0.

import json
import uuid
@@ -0,0 +1,82 @@
import pytest
from unittest.mock import patch, MagicMock
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.

Implement endpoint check-pleml

1 participant