| Commit message (Collapse) | Author | Age | Lines |
... | |
| | | |
| | | |
| | | |
| | | | |
By default, give an incoming message a body attachment.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This was disabled for hidden requests as the download was by redirect,
allowing people who have not been authenticated to conceivably access
the download. We'll be moving to send_file instead, so can restore it.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
The third (and any subsequent) session created shares a session id with
the second without this explicit reset.
|
| | | |
| | | |
| | | |
| | | | |
We're testing the code path where there is no converter here.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This should be handled by assign_variables_for_show_template. Otherwise,
the make_request_summary_file method shouldn't depend on instance
variables
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Adds a spec for what we want to see - no message text in
correspondence.txt, and no attachments. Refactors the
simple_correspondence templates to make it clearer that these are doing
the same job as the html.erb ones, for text.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Each part is a separate sentence, and we're going to reuse some of them
in the text view.
Conflicts:
spec/integration/view_request_spec.rb
|
| | | |
| | | |
| | | |
| | | | |
We're about to reuse them for the text view.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Conflicts:
app/views/request/_incoming_correspondence.html.erb
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Render the show template within the current thread rather than making
another request - we're going to need to use the current session in
order to know what do include in the zip file, now that we have more
fine-grained visibility of messages. Also, this will mean we can use
this functionality in single threaded contexts, and test it more easily.
Don't display profile photos as this would require another process, and
hide other icons so we don't need to include them. Use render_to_string
as a more standard way of rendering templates to a string for further
manipulation.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
So we can reuse them when rendering the show template to a file. Lots of
the sidebar prep isn't going to be needed for that view, so make that
optional in the template.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Split into those that come from request params and those that come from
the model
|
| | | |
| | | |
| | | |
| | | | |
Also, store an event for the incoming message.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Make it an integration spec so we don't need to touch the internals so
much.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Add another spec for the same behaviour when an incoming message is
hidden.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Remove expectation of pdf contents - we're looking at the raw file.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
They refer to the case where the request itself is hidden.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This will happen if the prominence has been changed in the admin
interface but no reason has been filled in.
Conflicts:
app/views/request/_incoming_correspondence.html.erb
|
| | | |
| | | |
| | | |
| | | | |
This will cover changes in prominence to incoming messages.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
From the request admin page.
|
| | | |
| | | |
| | | |
| | | | |
The order is the same as the default association.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Hopefully transitioning from fixtures to factories will mean faster
running tests over time.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
We'll use this for saving the changes to the prominence of an incoming
message in a relatively RESTful url structure.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Make specs that depend on multiple controllers and models interacting
integration specs.
|
| | | |
| | | |
| | | |
| | | | |
Eventually this should use standard RESTful routing.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Conflicts:
app/views/request/_incoming_correspondence.html.erb
Conflicts:
spec/integration/view_request_spec.rb
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Different messages for normal user, requester and admin user.
|
| | | |
| | | |
| | | |
| | | | |
Add a failing test for what should happen on request hiding.
|