Commit Graph

94 Commits

Author SHA1 Message Date
Adam Ding
9e22d5388d ListItemSearcher tests added 2020-12-01 20:42:50 -05:00
Adam Ding
16e4805d2c ListReposition tests added 2020-12-01 20:26:36 -05:00
Adam Ding
0c3839cec3 ListDuplicate tests added 2020-12-01 20:09:49 -05:00
Adam Ding
4b1f06cdcd ListDuplicate tests added 2020-12-01 20:09:08 -05:00
Adam Ding
f9cc1b40a4 Fixed merge conflict in List.java 2020-12-01 01:46:22 -05:00
Adam Ding
fcc243faef Added back curly brace to avoid illegal start of expression in List.java 2020-11-30 19:19:28 -05:00
Adam Ding
2b6af43cef updated typo 2020-11-30 19:16:05 -05:00
Adam Ding
56ab66a3fc Uncommented code to allow merge, in ListGetter and List 2020-11-30 19:11:17 -05:00
Adam Ding
81bb6623f9 Removed unused dependancy in TestItemGetter 2020-11-30 19:07:37 -05:00
Adam Ding
4048ca1ea6 Mocked TestItemGetter 2020-11-30 19:06:52 -05:00
Adam Ding
89ecda9f6b Mocked ListShareTest 2020-11-30 18:53:05 -05:00
Adam Ding
8f3840e0d7 Mocked testlistentrydeleter 2020-11-30 18:45:10 -05:00
Adam Ding
00d740631c Mocked testlistentryadder 2020-11-30 18:32:31 -05:00
Adam Ding
cff2bee7a5 Removed old tests 2020-11-30 17:35:56 -05:00
Adam Ding
b04be3a3c7 Mocked Test List Getter 2020-11-30 17:32:14 -05:00
Adam Ding
c5313f5753 Mocked List Delete 2020-11-30 17:25:40 -05:00
Adam Ding
bf1b0e0a98 Mocked List Adder 2020-11-30 16:42:50 -05:00
NMerz
be80129de6 Update list sharing
Fix quite a variety of bugs with list sharing, mostly relating to ListShareGET not conforming to its contract
2020-11-30 12:16:29 -05:00
NMerz
d8f722c4ac Fix other user email retrieval
The id argument needs to actually be used
2020-11-30 10:40:38 -05:00
NMerz
53570b3356 User retrieval updates
Make sure AuthManager always has the user email.

Make UserGET always return a User object.
2020-11-30 10:35:46 -05:00
NMerz
e528830474 Handle no access to list
Handle user not having access to list with many sharees
2020-11-29 21:42:53 -05:00
NMerz
0b85980d2a User ease of use
Make email retrieveable client-facing
2020-11-29 21:41:38 -05:00
NMerz
8ecee59da9 Make ListShareGET work
Fix absolute functionality-breaking bugs. There is still a fair amount of funkiness and lack of polish (such as having other and entried in the Lambda return).

In addition, the NULL uiPositions that got put in the database may need cleaning up manually.
2020-11-29 15:45:08 -05:00
NMerz
70195632f8 Store Profile Picture on AWS
Save the profile picture to AWS so that the user need not retrieve it every time.
2020-11-29 15:19:10 -05:00
NMerz
bede2fc1a0 ListShare compiling
Make ListShare compile again
2020-11-29 14:06:02 -05:00
Nathan Merz
c596a87373
Merge pull request #118 from ClaytonWWilson/list-duplication
List duplication
2020-11-20 15:57:26 -05:00
Nathan Merz
e3d0b639c3
Merge branch 'master' into list-renaming 2020-11-20 15:56:57 -05:00
Nathan Merz
f84bc2014d
Merge branch 'master' into intra-list-ordering 2020-11-20 15:54:21 -05:00
Aaron Sun
6e3402a8e5
Merge branch 'master' into aaron-branch-2 2020-11-15 17:36:31 -08:00
41f8ccbf30
Merge branch 'improvements' into list-renaming 2020-11-15 20:18:53 -05:00
NMerz
616caa1e10 List renaming
Added list reanming through a ListPUT lambda. Potentially could be used to alter other List aspects in the future.

Also renamed itemID to listID for semantic unity
2020-11-15 17:55:25 -05:00
Nathan Merz
254f771e6e
Merge pull request #119 from ClaytonWWilson/chain-get-ids
Add chain id list retrieval
2020-11-15 17:29:52 -05:00
NMerz
f8db33bde4 Add chain id list retrieval
Update ChainGetter to work with getListOfIds
2020-11-15 17:29:37 -05:00
NMerz
27f0d74422 Add list duplication lambdas 2020-11-15 17:18:30 -05:00
Aaron Sun
5f14d24625 Wrote the Lambdas API for getting and deleting list sharees -- testing still needed 2020-11-15 12:04:04 -08:00
NMerz
1fe04e038b Refine repositioning logic 2020-11-15 12:28:18 -05:00
NMerz
ce8070cf43 Merge branch 'sharing-permissions' into intra-list-ordering 2020-11-15 10:39:45 -05:00
NMerz
7d827a4a7e Handle unshares with PUT 2020-11-15 10:38:43 -05:00
NMerz
35f709fcd9 Add list position changing Lambdas
Initial shot at repositioning Lambdas.
2020-11-14 16:21:18 -05:00
NMerz
421fceb364 Store uiPosition
This will later be changeable and can then be used to sort lists received by the UI controller
2020-11-14 15:55:29 -05:00
NMerz
7cb9639f9a Refine delete access
The requestor's access cannot be removed until after permissions are checked. Note, if the user does have permissions, they are remove along with all other users below these changes.
2020-11-14 15:17:56 -05:00
NMerz
2c23331354 Finish ON DUPLICATE in list sharing 2020-11-14 15:16:52 -05:00
NMerz
b478ace552 Update delete to use delete permission
Previously used list creator as filter
2020-11-14 15:02:04 -05:00
NMerz
d4606df350 Fix unique assertion on share rows 2020-11-14 15:01:36 -05:00
NMerz
3b938bdd2c Recracterize ListSharePOST as ListSharePUT
Semantically, this is now an update and so should be PUT
2020-11-14 14:35:08 -05:00
NMerz
9de8f425c7 Merge branch 'search-history' into sharing-permissions 2020-11-14 14:32:27 -05:00
NMerz
954b52dc0a Stricter access checking
Properly restrict access to list actions to only authorized users.
2020-11-14 14:29:48 -05:00
NMerz
82272a9a29 Set permission param
Ensure permssion parameter is getting set when sharing a list
2020-11-14 12:46:33 -05:00
NMerz
3afaad89ea Use plain table search history
This is easier, clearer, faster for inters, and ultimately not really much less space efficient than trying to store this in a serialized nor unreasonably slow for retrievals.

Food for thought: Would this might be well-suited to a nosql database?
2020-11-14 12:05:50 -05:00
NMerz
8653b9a035 Try storing serialized search object
Does not seem to be the best solution (https://stackoverflow.com/questions/17662236/java-write-object-to-mysql-each-field-or-serialized-byte-array)  and does not entirely work, but saving it for posterity because there are some interesting changes here
2020-11-14 11:40:42 -05:00