Closed NikitaAvvakumov closed 7 years ago
:+1:
should we keep a redirect route from /hq
to /
? Just so some old links keep working.
@razorcd Good idea - added a globbed redirect for any GET
requests to the 'hq' namespace (commit). Should work well enough until muscle memory and bookmarks get updated.
Another thought I had was to create a Rack middleware to strip /hq
from all request paths - should be possible, but I don't think it's really necessary.
:astonished:
Discovered a problem after deploying this to Heroku: the filter
scope defined on Orphan
in the OrphanAttrFilter
concern now raises NoMethodError (undefined method
filter' for #Orphan::ActiveRecord_Relation:0x007f5a70800698)in
OrphansController#index. Same situation with
Sponsor.filter. Locally, I didn't see this in the browser, but
spec/models/concerns/orphan_attr_filter_spec.rbwas failing with the same exception until I converted it to an
RSpec.describe Orphan, type: :model. Strangely, there were no such problems with
Sponsor.filter`.
In the OrphanAttrFilter
concern I could define an instance method that would be available on Orphan
objects, and it was the filter
scope specifically that wasn't getting picked up.
Will keep investigating, but any pointers appreciated
This commit fixes the problem mentioned above, though I'm not entirely certain as to why. The issue reproducibly showed up with RAILS_ENV=production
and did not with RAILS_ENV=development
.
This branch is deployed to https://osra-nga.herokuapp.com, you can use the same credentials as for osra-new-staging. Ping me in Slack if needed
Missing functionality:
Partners index is missing the Download CSV link (is this used/needed?)
Users index is missing the Download CSV link (is this used/needed?)
Admin Users index is missing the Download CSV link (is this used/needed?)
Reduced functionality:
No route matches [GET] "/admin/sponsors"
for example on previously bookmarked pages, I think we should also redirect theseOrphans index missing colour highlighting on boolean values
Sponsors index missing colour highlighting on boolean values
Nice touches:
The OSRA
button in the nav bar is no longer needed
The NoMethodError
on production only was probably caused by preloading, I have seen similar things before. Sometimes you can add require
statements in the non-Rails Ruby style to fix that
pending_orphan_lists/upload.html.erb
seems to not be reachable
hq
namespace exclusively for a while now and it is feature-equivalent to the admin
namespace. I've added redirection for /admin
routes, but the hope is that they haven't been used for some time anyway. Perhaps all this is worth confirminghq
UI, highlighting would really stand out - unless there is a real benefit to quickly distinguishing between the 'yes' and 'no' in those categories, colour might actually be disruptive to the UXI think we should get confirmation from the client then that they aren't using the export functions on those pages? Or alternatively we could dig into the server log and see if they've been accessed...
:shipit:
☢️ 💣 💥 => 🎉