Pfingstfrosch
ca38d7260d
fixed bugfix where another user could not store the same object again
...
fixed the primary keys => all the classes have now composite primary key which contais an id + user_id, necessary gem: 'composite_primary_keys'
fixed the user_id relation => every class now "belongs_to" user
pls kill me know
2020-06-05 00:35:04 +02:00
Pfingstfrosch
1e87036094
personal annotations for all classes implemented
2020-06-04 23:15:54 +02:00
Pfingstfrosch
74cc3dce22
make annotation storing and retrieving more generic
2020-06-04 22:14:21 +02:00
Pfingstfrosch
88783ffede
on detail view show stored annotation if available
2020-06-04 21:54:17 +02:00
Pfingstfrosch
37cc1ae72d
add stubs, routes for add_annotation action
2020-06-04 21:53:32 +02:00
Pfingstfrosch
cfcbf5acdb
Ad requirement 4
...
I have no idea how this requirement shall be implemented at the end, but at first step, the tiss_crawler.rb lib checks if the search_term is an empty string and returns an error msg if found
otherwise it returns the result, but appended to 'content' key
2020-05-31 15:48:17 +02:00
Pfingstfrosch
204597b39d
fix rubycop issue:
...
- don't introduce global variable
- don't prefix getter with get_
- single quotes instead of doubles for hash usage
2020-05-31 13:41:50 +02:00
Pfingstfrosch
831c78a3ff
Merge remote-tracking branch 'remotes/origin/projects_search' into fixes
...
# Conflicts:
# app/views/favorites/projects.html.erb
# db/schema.rb
2020-05-31 13:16:56 +02:00
Pfingstfrosch
a3f7066cc1
Merge branches 'projects_search' and 'user_based_+_sortable_favs'
...
# Conflicts:
# app/assets/stylesheets/favorites.scss
2020-05-29 15:48:58 +02:00
a6a866d357
Hotfix: Add params parsing
...
When favoriting from `show_basic` for courses, the parameters `number`
and `semester` are not passed to the underlying function. Instead, the
`detail_url` is passed, which has to be parsed to get the `number` and
`semester`.
2020-05-29 10:57:18 +02:00
cbcc7c3d25
Hotfix: parse oid when only one given
...
The function `show_detail` for courses was expecting an array of
lecturer oids. When it got only one and therefore not an array but an
int, the line `@lecturers_oid.each` would fail to parse the variable
because it is not an array.
2020-05-29 10:43:34 +02:00
04245d63dc
Implement favoriting of projects
2020-05-29 10:29:20 +02:00
ae217a60ea
Fix comment errors
...
Should really look at it before doing copypasta...
2020-05-27 17:48:09 +02:00
bba13f249c
Implement show_basic, show_detail and add_to_fav methods
2020-05-27 17:18:23 +02:00
19eb7a724f
Add search context for projects
2020-05-27 17:09:25 +02:00
d84297bde7
Implement search, show_basic, show_detail and add_to_fav for theses
2020-05-25 16:14:41 +02:00
311e3d9dcb
Finish favorite courses view
2020-05-25 14:57:15 +02:00
dabda63cbc
Remove URL parsing
...
The fields `courseNr` and `semesterCode` are already parsed by the
controller and do not have to be parsed again when calling the
add_to_fav function.
2020-05-23 15:44:39 +02:00
b8cc0d5b61
Implement favoriting of courses
2020-05-21 13:31:54 +02:00
Pfingstfrosch
2f6d638cd1
second attempt of making favorite people view sortable
2020-05-16 14:09:33 +02:00
Pfingstfrosch
83d4368af7
first attempt of making favorite people view sortable
2020-05-16 13:30:00 +02:00
Pfingstfrosch
dd7ac8e64f
only select favorites which match the current user id
2020-05-16 12:26:21 +02:00
Pfingstfrosch
72be2d07f3
store also the user_id when adding to favorite
2020-05-16 12:22:09 +02:00
Pfingstfrosch
9dcb2994e1
create a hash of favorite details and reuse it;
...
move redirect_back out of conditional scope
2020-05-16 11:58:25 +02:00
Pfingstfrosch
5bb0bae858
fix of inheritance error -> uninitialized constant Crawlers::ApplicationController
2020-05-16 11:45:05 +02:00
Pfingstfrosch
1970a65bf8
fix of inheritance error -> uninitialized constant TissCrawlerController
2020-05-16 11:44:21 +02:00
Pfingstfrosch
d5ec02201d
instead of redirecting just display an success or error message after pressing add button
2020-05-12 20:01:30 +02:00
Pfingstfrosch
34f34790ee
remove action with no purpose
2020-05-12 19:53:17 +02:00
Pfingstfrosch
d34a3d583c
refactored crawler controllers and bundled them in crawlers namespace
2020-05-12 19:49:18 +02:00
Pfingstfrosch
415ed22f6e
remove HOME Page, because redundant
...
show search page as default
2020-05-12 19:27:43 +02:00
Pfingstfrosch
92eff82f1a
refactored favorites:
...
instead of using a fav page for each content, use a general favorites pane where the user can select which favs shall be shown
2020-05-12 19:19:04 +02:00
8866e29a44
Add comments for lecturer name feature
2020-05-10 17:10:21 +02:00
4d9bc09ae1
Add names of lecturers to detail page for courses
2020-05-10 17:05:30 +02:00
ce178ff99d
Fix bug where course numbers were not parsed
...
Course numbers cannot only contain digits but also letters. Replacing \d
for digits with \S for any non-whitespace character does the trick.
2020-05-10 16:01:08 +02:00
ba6d9b24a4
Implement detail page for courses
2020-05-09 15:56:44 +02:00
74bd875427
Implement basic search for courses
2020-05-09 12:16:20 +02:00
0314b75b24
Flash error message when favoriting already favorited person
2020-05-07 11:58:29 +02:00
d111a371ae
Change layout of favorites
2020-05-07 11:57:39 +02:00
ffec7643a4
Add skeleton for theses, projects and courses
2020-05-01 11:39:57 +02:00
99b4e66504
Styling of search result page
2020-04-25 15:28:40 +02:00
4f45c768ec
Fix mess made by @Pfingstfrosch
2020-04-24 23:02:45 +02:00
Marco Zeisler
670bac90d2
make me work
2020-04-24 17:02:08 +02:00
Marco Zeisler
717abd8796
make me work
2020-04-24 16:56:22 +02:00
Marco Zeisler
a36796960f
refactoring of "abstract" search controller
2020-04-21 18:58:48 +02:00
Marco Zeisler
fbfc12e096
store and display favorite person by tiss_id
2020-04-21 18:06:07 +02:00
Marco Zeisler
c32819d819
first attempt of people crawler incl. detail view
2020-04-21 16:07:54 +02:00
Marco Zeisler
e0a21f180f
refactoring
2020-04-21 13:52:27 +02:00
Marco Zeisler
c5cc225ca6
refactoring of project
2020-04-21 13:19:01 +02:00
Marco Zeisler
c0a5b794ec
refactoring of project
2020-04-21 13:03:59 +02:00
Marco Zeisler
e2f0bd7237
setup abstract search
2020-04-20 18:21:19 +02:00