Skip to content

Update Add-on Manifest spec descriptions#14754

Merged
seanbudd merged 4 commits into
masterfrom
updateAddonManifestSpec
Apr 18, 2023
Merged

Update Add-on Manifest spec descriptions#14754
seanbudd merged 4 commits into
masterfrom
updateAddonManifestSpec

Conversation

@seanbudd

@seanbudd seanbudd commented Mar 28, 2023

Copy link
Copy Markdown
Member

Link to issue number:

None

Summary of the issue:

The add-on datastore has certain expectations of an add-on manifest.
These expectations are not required to work with NVDA, but require manifests to be updated to be hosted on the add-on datastore.
We may want to make these changes in a future API breaking release, and add validation to enforce them.

Description of user facing changes

None

Description of development approach

Updates the add-on manifest spec to match the requirements of the add-on store better.
We may want to add validation for these requirements in a future API breaking release.

Testing strategy:

None

Known issues with pull request:

None

Change log entries:

For Developers
TODO:
add description of changes
when merging update add-on authors via add-on API mailing list.

Code Review Checklist:

  • Pull Request description:
    • description is up to date
    • change log entries
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • API is compatible with existing add-ons.
  • Documentation:
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • Security precautions taken.

@seanbudd seanbudd requested a review from a team as a code owner March 28, 2023 04:51
@seanbudd seanbudd requested a review from michaelDCurran March 28, 2023 04:51
@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 4d8dd46cd5

@Brian1Gaff

Brian1Gaff commented Mar 28, 2023 via email

Copy link
Copy Markdown

Comment thread source/addonHandler/__init__.py Outdated

# Version of the add-on. Should preferably in some standard format such as x.y.z
# Version of the add-on.
# Should be in <major>.<minor>.<patch> format.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does it mean that in the future, X.Y.Z will be mandatory?
For now, I have not dealt with beta versions. However, I was hoping to use version names such as "4.3beta1". "4.3.1" does not indicate clearly to the user that it is a beta version. Having a version name indicating clearly which version is a beta and which not in the add-on manager (or in the future add-on store) would be a plus IMO.

Same for dev versions even if I personally do not plan to release dev versions of my add-ons.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

submissions with these formats may not be valid for the add-on store. The add-on store requires a major.minor.pitch version scheme.
This current PR just proposes encouraging authors to follow the standards for the add-on store when making a manifest, not force any mandatory changes.

It's still an open question whether or not we add validation enforcing major.minor.patch in all add-on manifests, not just submissions to the add-on store.
This would not be until a breaking release of course.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change
# Should be in <major>.<minor>.<patch> format.
# Suggested convention is <major>.<minor>.<patch> format.

@seanbudd

Copy link
Copy Markdown
Member Author

Does this men then that users will no longer be able to edit manifests of
installed add ons where they will work if edited?

no, this has nothing to do with this change

Comment thread source/addonHandler/__init__.py Outdated
@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 19b969e7bf

@seanbudd seanbudd merged commit 52b9282 into master Apr 18, 2023
@seanbudd seanbudd deleted the updateAddonManifestSpec branch April 18, 2023 06:03
@nvaccessAuto nvaccessAuto added this to the 2023.2 milestone Apr 18, 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.

6 participants