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

Groups in DocTags #7337

Merged
merged 7 commits into from
Jul 24, 2023
Merged

Groups in DocTags #7337

merged 7 commits into from
Jul 24, 2023

Conversation

farmaazon
Copy link
Contributor

@farmaazon farmaazon commented Jul 19, 2023

Pull Request Description

Fixes #7336 in a quick way.

Next to the old way of defining groups, the library can just add GROUP tag to some entities, and it will be added to the group specified in tag's description.

The group name may be qualified (with project name, like Standard.Base.Input/Output) or just name - in the latter case, IDE will assume a group defined in the same library as the entity.

Also moved some entities from "export" list in package.yaml to GROUP tag to give an example. I didn't move all of those, as I assume the library team will reorganize those groups anyway.

Important Notes

@jdunkerley @radeusgd @GregoryTravis When you will start specifying groups in tags, remember that:

  • The groups still belongs to a concrete project; if some entity outside a project wants to be added to its group, the "qualified" name should be specified. See Table.new example in this PR.
  • If the group name does not reflect any group in package.yaml the tag is ignored.
  • A single entity may be only in a single group. If it's specified in both package.yaml and in tag, the tag takes precedence.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • All code has been tested:
    • Unit tests have been written where possible.
    • If GUI codebase was changed, the GUI was tested when built using ./run ide build.

@farmaazon farmaazon self-assigned this Jul 19, 2023
@farmaazon farmaazon force-pushed the wip/farmaazon/groups-in-tags branch from 3347b55 to 6e8b1ac Compare July 20, 2023 11:55
@farmaazon farmaazon force-pushed the wip/farmaazon/groups-in-tags branch from a284977 to acb24e0 Compare July 21, 2023 10:13
Copy link
Member

@JaroslavTulach JaroslavTulach left a comment

Choose a reason for hiding this comment

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

Does this solution also renders further work #6497 unnecessary? Oh, my procrastination and laziness...

@jdunkerley
Copy link
Member

I believe the longer term approach is to go for attributes still.

@vitvakatu
Copy link
Contributor

Yep, our plans is to use doc tags instead of attributes before the support for attributes lands.

@kazcw
Copy link
Contributor

kazcw commented Jul 21, 2023

QA: 🟢

@farmaazon farmaazon added the CI: Ready to merge This PR is eligible for automatic merge label Jul 24, 2023
@farmaazon
Copy link
Contributor Author

@jdunkerley @radeusgd @GregoryTravis I need an accept from one of you, as I changed libraries' code.

Comment on lines +13 to +14
- Input: {}
- Web: {}
Copy link
Member

Choose a reason for hiding this comment

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

Do the groups still need to be defined in package.yaml?

What if we annotate a method with a GROUP xyz when xyz is not defined in package.yaml?

Copy link
Member

Choose a reason for hiding this comment

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

Yes the groups have to be defined in the package.yaml.
It is supposed to generate an error but that may not be done yet,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IDE will print the error log and the entry will not be assigned to any group.

@mwu-tow mwu-tow merged commit 1d2371f into develop Jul 24, 2023
@mwu-tow mwu-tow deleted the wip/farmaazon/groups-in-tags branch July 24, 2023 13:54
Frizi pushed a commit that referenced this pull request Jul 25, 2023
Fixes #7336 in a quick way.

Next to the old way of defining groups, the library can just add `GROUP` tag to some entities, and it will be added to the group specified in tag's description.

The group name may be qualified (with project name, like `Standard.Base.Input/Output`) or just name - in the latter case, IDE will assume a group defined in the same library as the entity.

Also moved some entities from "export" list in package.yaml to GROUP tag to give an example. I didn't move all of those, as I assume the library team will reorganize those groups anyway.

@jdunkerley @radeusgd @GregoryTravis When you will start specifying groups in tags, remember that:
* The groups still belongs to a concrete project; if some entity outside a project wants to be added to its group, the "qualified" name should be specified. See `Table.new` example in this PR.
* If the group name does not reflect any group in package.yaml **the tag is ignored**.
* A single entity may be only in a single group. If it's specified in both package.yaml and in tag, the tag takes precedence.

---------

Co-authored-by: Ilya Bogdanov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specify group of the component as doctag or section.
7 participants