Convert the new RepositoryForm and RepositoryFormView to Spina.
Review Request #12820 — Created Jan. 31, 2023 and updated
This change updates the brand-new in-progress
RepositoryForm
and
RepositoryFormView
classes in JavaScript to use TypeScript and
Spina-based classes instead of Backbone.This gives us proper type checking for both the model and form, using
interfaces to define available attributes (which also ensures proper
.get()
usage on models). It also enables usage of private methods.Other than porting and documentation, this doesn't fundamentally alter
much of the code. Logic remains the same.The new code is also now part of the
rb/js/admin
Rollup bundle, rather
than being listed explicitly in the Pipeline bundle.
Ran through all the various modes in the repository admin form. Didn't
spot any noticeable issues. Verified I was running the new generated
code.
- Change Summary:
-
Added the same "Instance variables" marker we use in Python to the TypeScript classes.
- Commits:
-
Summary ID 0aec77e422ed781444fe58d73e379abfb6e005bd c7dc6a571f003320167a01d5bd511d1ed29736bd - Diff:
-
Revision 2 (+698 -428)
Checks run (2 succeeded)
- Change Summary:
-
- Made fields in the attribute interfaces optional, to ease dynamically building attributes.
- Changed some "tool" references to "scmtool", for consistency.
- Commits:
-
Summary ID c7dc6a571f003320167a01d5bd511d1ed29736bd a94b2defd0afd0e20e05cc670ae93240fcb0e3c4 - Diff:
-
Revision 3 (+1072 -804)