Commit graph

674 commits

Author SHA1 Message Date
Jyri-Petteri Paloposki
6383c3d998 Replace sass-rails with sassc-rails. 2020-08-19 13:24:34 +03:00
Jyri-Petteri Paloposki
320da8b72a Compare int to int 2020-08-18 15:27:43 +03:00
Jyri-Petteri Paloposki
2d4ba48ad4 Move the access control to a dedicated helper 2020-08-18 11:51:16 +03:00
Jyri-Petteri Paloposki
95cb7ec799 Fix tests and add more comments 2020-08-11 11:50:35 +03:00
Jyri-Petteri Paloposki
46b8d3ce9f Allow the user to delete their own account 2020-08-11 01:18:10 +03:00
Jyri-Petteri Paloposki
1936c90c95 Record and show the last time users have logged in 2020-08-10 16:54:48 +03:00
Jyri-Petteri Paloposki
cf5751cdce Add a help page with link to the user manual and other sources 2020-07-23 22:20:28 +03:00
Jyri-Petteri Paloposki
dbaa9a85cb Add a field for user email address 2020-07-20 18:41:10 +03:00
Jyri-Petteri Paloposki
5a3727dc5f Add functionality for requiring TOS approval on signup 2020-07-20 18:16:15 +03:00
Matt Rogers
be646de904
Use the right format for expiry_time 2020-04-05 12:40:09 -05:00
Matt Rogers
b82403e0e1
Parse the session time so we can calculate expire time. 2020-03-28 14:03:29 -05:00
Matt Rogers
c2a882ceac
Merge pull request #2301 from ZeiP/feature/#2072_tag_sanitize
#2072: Remove needless sanitisation of tags. The sanitised version is…
2020-01-03 11:54:05 -06:00
Jan-Yves Ruzicka
c66ce02cb6 Refactor todos_controller and todos_helper to use @original_item
Project uses properties of @original_item over a number of similar-named
variables (eg. @original_item_description, @original_item_was_pending, etc.)

Have left in @original_item_due_date and @original_completed_period as these
are more complex, and not simply properties of the todo item.
2019-11-17 16:03:40 +13:00
Jyri-Petteri Paloposki
e0aa0ac69e #2072: Remove needless sanitisation of tags. The sanitised version is only used in DB queries, which handle escaping themselves; the actual UI XSS sanitisation is handled separately. 2019-11-14 02:16:59 +02:00
Jyri-Petteri Paloposki
f6d1f243c5 #1955: Use existing user parameter in taggable models instead of passing it 2019-06-26 00:19:32 +03:00
Jyri-Petteri Paloposki
5394973346 #1955: Migrate tags to belong to named users for enhanced privacy. 2019-06-25 11:37:34 +03:00
Jyri-Petteri Paloposki
e66511c34e #2249: Add space between sentences 2019-06-10 20:43:00 +03:00
Jyri-Petteri Paloposki
6ad1e2cf93
Merge pull request #2231 from ZeiP/bug/1153_stats
Change the Flash charts to Charts.js
2019-05-29 19:33:57 +03:00
Jyri-Petteri Paloposki
0df6f19726 Fixed bug causing context change to hidden returning a server error 2019-05-22 16:09:46 +03:00
Jyri-Petteri Paloposki
0b326e17d8 #1153: Use translations properly, add missing labels, fix bugs and add links to charts 2019-05-19 16:40:00 +03:00
Jyri-Petteri Paloposki
f873a93eb3 #1153: Convert rest of the stats to use ChartJS 2019-05-19 13:04:33 +03:00
Jyri-Petteri Paloposki
c9cae9421a #1153: Few of the graphs converted to use Chartkick 2019-05-17 22:49:21 +03:00
Matt Rogers
8bf0627d41
Merge pull request #2210 from ZeiP/bug/2032_api_filters
#2032: Use context and project filters in API also when not requestin…
2019-05-12 13:52:19 -05:00
Matt Rogers
996395cc80
Merge pull request #2207 from TracksApp/exists-instead-of-count
Use exists? instead of count > 0
2019-05-04 14:54:21 -05:00
Jyri-Petteri Paloposki
8c5edd2dcf #2032: Use context and project filters in API also when not requesting only done items 2019-05-04 22:47:39 +03:00
Jyri-Petteri Paloposki
d3ba80c84e #2203: Allow using REST API with token 2019-05-04 20:31:32 +03:00
Matt Rogers
a7d8b3c950
Use exists? instead of count > 0 2019-05-04 10:32:15 -05:00
Jyri-Petteri Paloposki
b9a80a385e #2036: Change empty XML responses to have the correct base element 2019-05-03 11:47:05 +03:00
Matt Rogers
d08608c755
Remove the query code from TodosController
It has been completely replaced with our new query object
2019-04-11 14:38:56 -05:00
Matt Rogers
df091c7ec5
Use the results of the new query object
This confirms that we've successfully extracted the code and now we can
start removing the old code.
2019-04-07 20:08:11 -05:00
Matt Rogers
eb7c34e973
Run both the new query and the old query
Throw away the results of the new query for now. Now that we know it
will run without raising exceptions, we can replace the old query with
the new query.
2019-04-07 20:04:28 -05:00
Matt Rogers
f2647e3f94
Remove deprecations printed out in the test suite 2018-11-20 19:57:02 -06:00
Matt Rogers
32d267d6cd
Remove private variable usage from models
It seems that `@new_record_before_save` as an instance variable has been
present since around 2007 and it wasn't until Rails 5.1 that things were
changed in such a way to make this inaccessible now.
2018-11-12 13:23:30 -06:00
Matt Rogers
6d81e14b41
Use a non deprecated method to collect errors
Hash-based access to set an error is deprecated. Use
ActiveModel::Errors.add instead.

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-11-03 15:12:27 -05:00
Matt Rogers
7fe0cf271a
Access MIME types via hash lookup instead of constant
Use a constant to look up a mime type is deprecated.

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-11-03 15:02:00 -05:00
Matt Rogers
b5faedb4ff
Use reload to reload AR models
Passing a boolean to the model method will stop working in Rails 5.

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-09-22 13:12:23 -05:00
Matt Rogers
506f3f991a
Convert render :nothing => true to head :ok
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-09-22 13:06:38 -05:00
Matt Rogers
17f704a074
Convert after_filter to after_action
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-09-22 13:04:46 -05:00
Matt Rogers
5805c511bb
Convert render :text to render :body
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-09-22 13:03:35 -05:00
Matt Rogers
60ae4f6f5f
Convert before_filter to before_action
`before_filter` has been removed in future versions of rails.

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
2018-09-22 12:55:27 -05:00
Dan Rice
1ba829e960 Merge branch '2.3_branch' 2016-10-15 13:13:02 -04:00
Matt Rogers
c2296b5b99 Use Arel to generate case insensitve tag searches 2016-08-25 23:10:40 -05:00
Carsten Otto
f26f72272b remove TODO from code, migrated to #2018 2016-05-29 23:03:58 +02:00
Carsten Otto
ed3bca22a4 Remove 'project_hidden' state
Compute it using project/context state

Notable change:
todo.hidden? now also returns true if the todo is completed
2016-04-16 09:27:33 +02:00
Dan Rice
0843b78d08 Clean up reference to check_for_deprecated_password_hash
Ref #1733
2016-02-28 17:58:03 -05:00
Jan-Yves Ruzicka
ccf13418f4 Extract rendering to helper method. Shift filename sanitization to controller. 2016-02-02 11:08:12 +00:00
Carsten Otto
d2931ea7f0 sort current projects by last_reviewed date
fixes #1960
2016-01-21 22:30:48 +01:00
Carsten Otto
33c814e1b9 use local variable where possible 2016-01-17 17:52:28 +01:00
Carsten Otto
a4ef5654e9 explicit loading does not seem to be necessary 2016-01-17 17:51:49 +01:00
Carsten Otto
dc6eed3956 remove instance variable for projects, not necessary 2016-01-17 17:50:04 +01:00