aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeLines
* Merge branch 'issues/1181-destroy-external-request' into rails-3-developGareth Rees2014-08-21-0/+6
|\
| * Use different flash for fully_destroy external InfoRequestGareth Rees2014-08-18-0/+6
| | | | | | | | Uses a different flash message to avoid trying to fetch a non existent user record
* | Merge branch 'issues/1744-view-as-html-stylesheet' into rails-3-developGareth Rees2014-08-21-0/+1
|\ \
| * | Add charset to view-as-html templateGareth Rees2014-08-19-0/+1
| |/
* / Add honeypot spam protection to body update formGareth Rees2014-08-21-2/+16
|/ | | | | Intercepts the request and redirects to the homepage if the comment field is filled in on the public body update form.
* Use since_event_id to restrict query, not just data displayed.Louise Crow2014-08-11-1/+10
| | | | | Allow the same params (since_event_id, since_date) for both formats. There doesn't seem to be a particular reason not to treat them the same.
* whitespacelizconlan2014-07-28-436/+434
| | | | includes various code layout fixes
* Sending an invalid state value to add_correspondence now aborts the entire ↵lizconlan2014-07-28-29/+40
| | | | operation
* Refactor state update API, better error handlinglizconlan2014-07-28-10/+12
| | | | Filters; more 403s, fewer 500s; added logging; less duplication
* Extend add_correspondence API method to optionally accept a state paramlizconlan2014-07-28-79/+135
|
* New API method for updating request statelizconlan2014-07-28-277/+357
|
* Merge branch 'issues/1415-bulk-update-public-bodies' into rails-3-developGareth Rees2014-06-25-0/+145
|\
| * Move PublicBody domain logic from controllerGareth Rees2014-06-06-0/+14
| | | | | | | | | | | | Moves the magic 'site_administration' tag logic to the PublicBody model. Easier to make the string passed to `PublicBody#has_tag?` configurable if we want to allow this to be set per install.
| * Add PublicBodyController#list_all_csv specsGareth Rees2014-06-06-0/+17
| | | | | | | | | | - Shouldn't include non-visible bodies - Shouldn't include internal admin bodies
| * Extract public body CSV export to its own classGareth Rees2014-06-06-0/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - SRP: Do one thing. PublicBodyCSV converts a collection of bodies in to a CSV formatted String - Adds some parenthesis around parameters in PublicBodyController#list_all_csv - Let the controller handle what records to pull out for the CSV export Arguably this doesn't really need to be anything to do with PublicBody, but it allows us to set nice defaults.
* | Handle unhelpful stemmingGareth Rees2014-06-25-1/+21
| | | | | | | | | | | | | | Stemming returns 'bore' as the word to highlight which can't be matched in the original phrase. Also removes duplicates from the results
* | Add spec for highlight_and_excerptGareth Rees2014-06-25-1/+49
| |
* | Use regex based highlightingGareth Rees2014-06-25-4/+13
| |
* | Add helper to highlight and excerpt by regexGareth Rees2014-06-25-0/+218
| | | | | | | | | | | | | | Backport of https://github.com/rails/rails/pull/11793/ Contains integration tests to check that it works as expected with ActsAsXapian.
* | Improve ActsAsXapian::Search#words_to_highlightGareth Rees2014-06-16-5/+35
| | | | | | | | | | | | - Ignore stopwords - Use Stemming - Wrap words with regex for use in a highlighter (optional)
* | Fix typoGareth Rees2014-06-16-2/+2
| | | | | | | | Fixes typo in 6bd0bfe
* | Merge branch 'replace-xxx-todo' into rails-3-developGareth Rees2014-06-16-25/+25
|\ \
| * | Rename XXX comments with TODO:Gareth Rees2014-06-10-25/+25
| |/ | | | | | | Picks these up in `rake notes` and adds semantic meaning
* | Merge branch 'issues/788-notification-email-cache-buster' into rails-3-developGareth Rees2014-06-16-47/+147
|\ \
| * | Remove DateTimeHelper#year_from_dateGareth Rees2014-06-05-17/+0
| | | | | | | | | | | | DateTime, Date and Time all have #year methods
| * | Minor tidying of DateTimeHelper and specsGareth Rees2014-06-05-4/+4
| | |
| * | Add specs for DateTimeHelper#simple_timeGareth Rees2014-06-05-0/+18
| | |
| * | Add specs for DateTimeHelper#year_from_dateGareth Rees2014-06-05-0/+16
| | |
| * | Move date helpers to DateTimeHelperGareth Rees2014-06-05-47/+54
| | |
| * | Remove duplication from new correspondence urlsGareth Rees2014-06-05-7/+15
| | |
| * | Add cache-busting to request response notificationGareth Rees2014-06-04-1/+69
| |/ | | | | | | | | | | Users get a new response email, click the link, but get a cached page. This is a quick fix to ensure they always see the response when clicking the link.
* | Merge remote-tracking branch 'origin/hotfix/0.18.0.3' into rails-3-developLouise Crow2014-06-06-0/+11
|\ \
| * | Handle converting empty RTF fileshotfix/0.18.0.3Gareth Rees2014-06-06-0/+11
| | | | | | | | | | | | Fixes https://github.com/mysociety/alaveteli/issues/1563
* | | Merge branch 'hotfix/0.18.0.2' into rails-3-developLouise Crow2014-06-06-0/+18
|\ \ \ | |_|/ |/| |
| * | Allow a message with more than one event to be destroyed.hotfix/0.18.0.2Louise Crow2014-06-06-0/+18
| |/ | | | | | | Fixes #1569
* | Merge branch 'issues/1448-no-error-on-spam' into rails-3-developLouise Crow2014-06-02-0/+11
|\ \
| * | Redirect to the frontpage rather than error on invalid paramsLouise Crow2014-06-02-0/+11
| |/ | | | | | | Fixes #1448.
* / Support simple searching of bodies by short_nameGareth Rees2014-05-28-0/+5
|/
* Update specs for changes to translations in ↵Louise Crow2014-05-15-24/+24
| | | | 962e1d2b0edb6c0933ba42dd7690c38ba7d08f91
* Work around bug#77932 in pdftohtmlGareth Rees2014-05-06-0/+37
| | | | | | | | | Sometimes pdftohtml will generate thousands of images when converting an image embedded in a PDF. This causes a request spike when a user tries to view the converted PDF as HTML. See https://bugs.freedesktop.org/show_bug.cgi?id=77932 for the bug report.
* Remove dependency on timezone in configLouise Crow2014-05-02-10/+12
|
* Merge branch 'issues/1390-james-cheshire-infographic' into rails-3-developGareth Rees2014-05-01-0/+29
|\
| * Extract quarters_between to DateQuarter libGareth Rees2014-05-01-0/+29
| |
* | Merge branch 'hotfix/0.17.0.1' into rails-3-developLouise Crow2014-04-25-0/+5
|\ \ | |/ |/|
| * Fix for badly-formed content-disposition header.Louise Crow2014-04-25-0/+5
| | | | | | | | Taken from https://github.com/mikel/mail/pull/602
* | Merge branch 'issues/337-attachment-title' into rails-3-developGareth Rees2014-04-14-2/+541
|\ \
| * | Dynamically inject AttachmentToHTML::View contentGareth Rees2014-04-07-0/+5
| | |
| * | Remove redundant AttachmentToHTML::HTMLGareth Rees2014-04-07-24/+0
| | |
| * | Update AttachmentToHTML for new View classGareth Rees2014-04-07-6/+24
| | |
| * | Simpler AttachmentToHTML::Adapters::CouldNotConvert interfaceGareth Rees2014-04-07-40/+9
| | |