Developed by the the Alliance in collaboration with University of Alberta, DMP Assistant a data management planning tool, forking the DMP Roadmap codebase
MIT License
6
stars
1
forks
source link
Address Logic For "Download Monthly Usage" Button Visibilty #722
rails console shows that Portage Network is the only Org where Org.funder? evaluates to true
aaron@ubuntu:~/Documents/GitHub/roadmap
$ rails c
Running via Spring preloader in process 1210283
Loading development environment (Rails 6.1.7.6)
irb: warn: can't alias context from irb_context.
3.0.5 :001 > Org.funder.count
(2.2ms) SELECT COUNT(*) FROM "orgs" WHERE (("orgs"."org_type" in (2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31,34,35,38,39,42,43,46,47,50,51,54,55,58,59,62,63)))
=> 1
3.0.5 :002 > Org.funder
Org Load (2.1ms) SELECT "orgs".* FROM "orgs" WHERE (("orgs"."org_type" in (2,3,6,7,10,11,14,15,18,19,22,23,26,27,30,31,34,35,38,39,42,43,46,47,50,51,54,55,58,59,62,63)))
=>
[#<Org:0x000064e55c559230
id: 8,
name: "Portage Network",
abbreviation: "Portage",
target_url: "https://portagenetwork.ca/",
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
4.0.2+portage-4.0.1
Expected behaviour:
Actual behaviour:
app/views/usage/_total_usage.html.erb
app/controllers/usage_controller.rb
app/models/org.rb
rails console shows that Portage Network is the only Org where Org.funder? evaluates to true