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

1126 slot modifying classes #245

Merged
merged 4 commits into from
Feb 21, 2023
Merged

1126 slot modifying classes #245

merged 4 commits into from
Feb 21, 2023

Conversation

amc-corey-cox
Copy link
Contributor

runtime portion to implement showing classes that modify a slot on the slot page for docgen.

linkml/linkml#1126

@amc-corey-cox amc-corey-cox linked an issue Feb 6, 2023 that may be closed by this pull request
@amc-corey-cox
Copy link
Contributor Author

Along with the other PR I think this should add the functionality we need.

@amc-corey-cox
Copy link
Contributor Author

As I mentioned in Slack. I had some issues with push this PR. As you can see with the last commit, I needed to fix an issue with the test_schemaview that was failing. We should verify this is an appropriate fix.

Separately, I was not able to rebase because doing so caused pytest to fail on gather tests from tests/test_processing/test_referencevalidator.py. These test failures appear to be due to failed imports in these lines.

from examples import PermissibleValue
from linkml_runtime.utils.schema_builder import SchemaBuilder

The first line can just be commented out but the second import issue is due to this file being missing from main:

linkml_runtime/utils/schema_builder

I wasn't sure how to reconcile that so I just created this PR without rebasing on main.

@cmungall cmungall changed the title 1126 slot modyfying classes 1126 slot modifying classes Feb 6, 2023
@@ -702,7 +702,8 @@ def test_mergeimports(self):
"core",
"prov",
"xsd",
"shex"],
"shex",
"schema"],
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

you took the right approach, but ideally this situation would not have happened

Copy link
Member

@sujaypatil96 sujaypatil96 left a comment

Choose a reason for hiding this comment

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

Logic that implements the retrieval of classes that modify certain slot definitions in slot_usage statements of that class looks excellent. Great work @amc-corey-cox.

from tests.test_issues.environment import env


class Issue998TestCase(TestCase):
Copy link
Member

Choose a reason for hiding this comment

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

class Issue998TestCase or class Issue1126TestCase? Very trivial but just noticed it

@cmungall cmungall merged commit 163d459 into main Feb 21, 2023
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.

class table on slot pages
3 participants