-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Show numResolved / numUnresolved in resolution view #5923
Show numResolved / numUnresolved in resolution view #5923
Conversation
chrisrueger
commented
Dec 4, 2023
•
edited
Loading
edited
- First draft to show simple counters to easier spot unresolved requirements.
- reqs resolution := optional are not counted as unresolved.
- First draft to show simple counters to easier spot unresolved requirements. - reqs resolution := optional are not counted as unresolved. Signed-off-by: Christoph Rueger <[email protected]>
@pkriens Not sure if this is useful. Initially I thought I could use those counters it to easier find unresolved Requirements. But not sure if I am thinking correctly. I just added 3 counters now to count Resolved, Optional and Other. Any thoughts on this? |
Signed-off-by: Christoph Rueger <[email protected]>
I think I'd prefer more filters ... The advantage of a graphic UI is that our brains are amazing in detecting patterns. Having more filters will allow you to use this better than numbers. And with the aggregate idea of the view, I am struggling to think what would mean? If you're at it, it might be an idea to detect duplicate exports? It is ok if they are identical (all attributes should match) but otherwise it would help solve the problem we had. |
Ok I see, I probably discard the counter idea for now or may revisit them later, in case I find a useful use case.
So does that mean:
|
No that is ok :-) the problem is when there primary attribute is the same but they differ in other attributes. Except for osgi.service namespace, the primary attribute is always the same name as the name of the namespace. E.g. for a package the namespace is "osgi.wiring.package" and the attribute "osgi.wiring.package" holds the name of the package. you can find the gory details in PackageNamespace clas. For some asinine reason we made the ServiceNamespace use "objectClass" for the primary attribute. The problem we're chasing is finding packages that have the same name but differ in their class. Sinces the "hashes" attribute contains the hashes of each class, we'd see differences. The problem was that there were two exporters with different packages with the same name. If they'd been identical, as specified by OSGi, it would be ok. |
Signed-off-by: Christoph Rueger <[email protected]>
Signed-off-by: Christoph Rueger <[email protected]>
Signed-off-by: Christoph Rueger <[email protected]>
speeds up search from 7s to 1s for a 3500 item Maven repo. Needed to resort result. Signed-off-by: Christoph Rueger <[email protected]>
Signed-off-by: Christoph Rueger <[email protected]>
Thanks @pkriens for the clarification. I have pushed an update. Here is how the current draft of the UI looks like:
Do you think this would have been helpful for debugging the "duplicate exporterts" problems? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I think we should commit it and get some experience
biz.aQute.bndlib.tests/test/aQute/bnd/osgi/resource/CapReqBuilderTest.java
Outdated
Show resolved
Hide resolved
Really interesting what's happening here. Maybe we should make a video to show what this is all doing. |
Signed-off-by: Christoph Rueger <[email protected]>
Thanks @pkriens for the feedback. I added the varargs suggestion in the testcase. Ok then let's merge :)
Sure, open to ideas. Maybe let's talk about it in the next call? |