Class | MetarepController |
In: |
app/controllers/metarep_controller.rb
|
Parent: | ApplicationController |
This controller governs all actions pertaining to the browser portion of the application.
If this is a GET request, displays the editor. If this is a POST request, saves the user‘s edit to the database.
Builds the report part of the tree. Only to be called from tree_location_build
Searches all objects in the given context for the given search term. Reports all results, paginating with 10 per page.
Call this directly to store all information in the EDW in the change history. They will be commented with FULL STORE. The use of this is to revert to the last FULL STORE in case of a major site/database problem destroying all the site data. Individual reverts will also be possible; this is just to save time. Only a SuperAdmin or greater will succeed in calling this.
Call this directly if new schemas, tables, or columns are added. This function rebuilds linkages to the tree.
Revert the element specified in this change to the version before this change‘s version. That is, perform an "undo" on this change. Unlike REVERT, this action DELETES changes until the desired version is reached.
Saves a report‘s attribute, given by the field parameter, after a user edit. The field is specified to avoid having to create too many functions, as there are many editable attributes in a report.