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

Stop using variants storage for HTTP/REST/PropertyList sections #1104

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

d-ronnqvist
Copy link
Contributor

Bug/issue #, if applicable:

Summary

This changes the different DocumentationNode properties for HTTP/REST/PropertyList data to basic optional values instead of DocumentationDataVariants.

As far as I know and can tell, these types of symbols never have other language representations so it's not necessary to store their information as language varying. Removing the possibility of language variability for these properties make them easier to work with on the documentation node level.

For the same reason, the redirects is also changed to a basic optional value instead of DocumentationDataVariants. It's not possible to author language-representation-specific redirects.

Dependencies

None.

Testing

Nothing in particular. This isn't a user-facing change.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added Updated tests
  • Ran the ./bin/test script and it succeeded
  • [ ] Updated documentation if necessary

@d-ronnqvist d-ronnqvist added the code cleanup Code cleanup *without* user facing changes label Nov 22, 2024
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@sofiaromorales sofiaromorales self-requested a review December 4, 2024 13:45
Copy link
Contributor

@patshaughnessy patshaughnessy left a comment

Choose a reason for hiding this comment

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

Great simplification! Please just avoid the 2 new warnings.

@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist merged commit 890a58d into swiftlang:main Dec 17, 2024
2 checks passed
@d-ronnqvist d-ronnqvist deleted the unvary-http-sections branch December 17, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Code cleanup *without* user facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants