Closed Bug 734083 Opened 12 years ago Closed 12 years ago

Add balrog database admin form base class

Categories

(Release Engineering :: General, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: edransch, Assigned: edransch)

References

Details

Attachments

(1 file, 2 obsolete files)

All forms which allow database queries will need the data_version field.

We should have a Base Class for all such forms which contains only that field. It can then be extended for any desired functionality.
Add new class which contains the hidden data-version field used for database edits.
All forms which allow database modifications should inherit from this.
Attachment #604130 - Flags: review?(bhearsum)
Comment on attachment 604130 [details] [diff] [review]
base class for form that edit database

Review of attachment 604130 [details] [diff] [review]:
-----------------------------------------------------------------

::: auslib/web/views/forms.py
@@ +35,5 @@
>          else:
>              log.debug('JSONTextField: No value list, setting self.data to {}')
>              self.data = {}
>  
> +class DbEditForm(Form):

Minor name quibble: EditableForm. Can you change that on your github branch? No need to repost.
Attachment #604130 - Flags: review?(bhearsum) → review+
Updated to address feedback
Attachment #604130 - Attachment is obsolete: true
Attachment #605894 - Flags: review?(bhearsum)
Attachment #605894 - Flags: review?(bhearsum) → review+
Blocks: 734398
The patch that was attached was invalid. This one should apply cleanly.
Attachment #605894 - Attachment is obsolete: true
Attachment #608829 - Flags: review?(bhearsum)
Comment on attachment 608829 [details] [diff] [review]
Add base class for DB edit forms

Review of attachment 608829 [details] [diff] [review]:
-----------------------------------------------------------------

Landed this, Jenkins run is here: https://jenkins.mozilla.org/job/Balrog/57/
Attachment #608829 - Flags: review?(bhearsum)
Attachment #608829 - Flags: review+
Attachment #608829 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: