itwinjs-core icon indicating copy to clipboard operation
itwinjs-core copied to clipboard

Bump `FormatProps` to `@public`

Open GerardasB opened this issue 1 year ago • 12 comments

This PR changes the release tag of FormatProps to @public. To address https://github.com/iTwin/appui/issues/891

GerardasB avatar Aug 01 '24 10:08 GerardasB

@rschili please review this in the context of your current work to extend formats supported.

I believe this should be OK because format props are somewhat tied to EC's format specification which is already locked down

ColinKerr avatar Aug 01 '24 12:08 ColinKerr

@rschili please review this in the context of your current work to extend formats supported.

I believe this should be OK because format props are somewhat tied to EC's format specification which is already locked down

Looks good to me.

rschili avatar Aug 01 '24 12:08 rschili

Hey, I just discussed this with @ColinKerr . We're currently actively making changes to that interface. They will 99% not be breaking changes, so making this public should be fine, however, if there is no strong need to merge this right now, we would like to hold this off for 2 weeks until we have the final version of the interface, just to be safe.

rschili avatar Aug 01 '24 14:08 rschili

Hey, I just discussed this with @ColinKerr . We're currently actively making changes to that interface. They will 99% not be breaking changes, so making this public should be fine, however, if there is no strong need to merge this right now, we would like to hold this off for 2 weeks until we have the final version of the interface, just to be safe.

That's fine. Are you, @ColinKerr, or anyone else looking more generally into the quantity formatting and units APIs? They've been stuck in alpha/beta for years, people have been using them anyway, and we need a plan to stabilize and properly document them.

pmconne avatar Aug 01 '24 14:08 pmconne

That's fine. Are you, @ColinKerr, or anyone else looking more generally into the quantity formatting and units APIs? They've been stuck in alpha/beta for years, people have been using them anyway, and we need a plan to stabilize and properly document them.

@pmconne I'm afraid not, I'm just doing a few very specific things for Booster (Bearing angles, Azimuth angles, ratio and alternative labels). But as I understand, @anmolshres98 and possible Nam Le are intended to take over ownership for the quantity things soon.

rschili avatar Aug 01 '24 14:08 rschili

That's fine. Are you, @ColinKerr, or anyone else looking more generally into the quantity formatting and units APIs? They've been stuck in alpha/beta for years, people have been using them anyway, and we need a plan to stabilize and properly document them.

@pmconne I'm afraid not, I'm just doing a few very specific things for Booster (Bearing angles, Azimuth angles, ratio and alternative labels). But as I understand, @anmolshres98 and possible Nam Le are intended to take over ownership for the quantity things soon.

yes, I and @hl662 plan to take this pkg over

anmolshres98 avatar Aug 01 '24 15:08 anmolshres98

That's fine. Are you, @ColinKerr, or anyone else looking more generally into the quantity formatting and units APIs? They've been stuck in alpha/beta for years, people have been using them anyway, and we need a plan to stabilize and properly document them.

In light of this and other PRs recently that's expected to contribute to core-quantity, we can review the existing Quantity Formatting learnings documentation. We can also look over the .md for core-quantity api and go over anything that is marked as undocumented.

Paul, are you looking for improvements into the documentation for the consumers of the API, or the developers contributing to the API? This could be one and the same too.

hl662 avatar Aug 01 '24 16:08 hl662

This pull request is now in conflicts. Could you fix it @GerardasB? 🙏 To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

mergify[bot] avatar Aug 02 '24 05:08 mergify[bot]

Paul, are you looking for improvements into the documentation for the consumers of the API, or the developers contributing to the API? This could be one and the same too.

Consumers first and foremost.

pmconne avatar Aug 02 '24 09:08 pmconne

That's fine. Are you, @ColinKerr, or anyone else looking more generally into the quantity formatting and units APIs? They've been stuck in alpha/beta for years, people have been using them anyway, and we need a plan to stabilize and properly document them.

@pmconne Given the @alpha/@beta situation in core packages and the fact that we have committed to keeping those APIs stable, would it make sense to change them ALL to @public instead of going 1 by 1?

GerardasB avatar Aug 07 '24 14:08 GerardasB

Given the @alpha/@beta situation in core packages and the fact that we have committed to keeping those APIs stable, would it make sense to change them ALL to @public instead of going 1 by 1?

@GerardasB can you clarify what you mean by "we have committed to keeping those APIs stable"?

pmconne avatar Aug 07 '24 14:08 pmconne

@GerardasB can you clarify what you mean by "we have committed to keeping those APIs stable"?

My assumption is based on this commitment/exception to avoid breaking the internal APIs: https://github.com/iTwin/itwinjs-core/blob/2abffabee0774d742d3848fad9f2c2f6faf37b16/docs/changehistory/NextVersion.md?plain=1#L39 I assumed we want to avoid breaking APIs marked @alpha or @beta as well, especially those that have existed for some time (i.e. longer than 6 months?).

EDIT: on second thought there might be a good reason to keep those existing APIs @beta - it's to indicate to other consumers that the API is "not stable" and should be avoided, even if we treat it as stable (no breaking-changes allowed). It gives us more time to validate and mark it public or deprecate/propose a replacement.

GerardasB avatar Aug 07 '24 22:08 GerardasB