NAME
Smolder::Control::Projects
DESCRIPTION
Controller module that deals with actions associated with projects and test reports
RUN MODES
smoke_test_validity
Set or unset the invalid
flag on a given smoke report. Uses the Projects/smoke_report_details.tmpl template.
platform_options
Returns an HTML list sutiable for a Prototype based "Autocomplete" form of exising platform otpions
architecture_options
Returns an HTML list sutiable for a Prototype based "Autocomplete" form of exising architecture otpions
add_report
Shows the form to allow the developer to add a new smoke report to a project. Uses the Projects/add_report.tmpl
template.
process_add_report
Process the incoming information from the add_report
mode. If validation passes we upload the file and update the database. The report is stored for permanent storage, and summary information is extracted and inserted into the database. If successful, redirects the user to the "Recent Smoke Tests" screen for the same project.
If the newly uploaded report causes the ProjectFullReportsMax
configuration limit to be reached then any full reports over that limit will be purged. Their summary data will still be retained in the database, but the compressed XML file which contains the details will be removed, and the reports details will no longer be accessible.
smoke_report
Shows the summary info for a given smoke_report. Uses the Projects/smoke_report.tmpl template.
smoke_reports
Shows a list of smoke reports for a given project based on the limit, offset and tag parameters. Uses the Projects/smoke_reports.tmpl template.
report_details
Show the full report for download. Does not use a template but simply outputs the pregenerated file.
test_file_report_details
Show the details of an individual test file. This is called from the HTML page generated by report_details by an AJAX call.
tap_archive
Return the TAP archive for a given report to the browser
tap_stream
Return the TAP stream for a given report and given stream index number to the browser.
show_all
Show all of the projects this developer is associated with and a menu for each one.
public
Show all of the public projects with and a menu for each one.
admin_settings
If this developer is the admin of a project then show them a form to update some project specific settings. Uses the Projects/admin_settings_form.tmpl and the Projects/admin_settings.tmpl templates.
process_admin_settings
Process the incoming information from the admin_settings
mode. If it passes validation then update the database. If successful, returns to the admin_settings
mode.
delete_tag
Deletes a tag that is associated with a given Project. If validation passes the database is updated and all smoke reports that were associated with this tag are either re-assigned or simply not associated with a tag (depending on what the project admin chooses). Returns to the admin_settings
mode if successful.
details
Shows the details of a project.
mute_testfiles
Mute a group of test files.
comment_testfiles
Create a comment on a group of test files.
test_file_history
Show history of a particular test file in this project
feed
Will return an XML data feed (Atom) to the browser. The 5 most recent smoke reports for a project are included in this feed. An optional type
can also be specified which is can either be all
or failures
.Only projects that have been marked as enable_feed
will appear in any feed.