G.Ambatte
1e35e1096f
Reduce data retrieved for brews with requested reviews
2025-04-07 14:39:33 +12:00
G.Ambatte
99c342f19b
Use throw in Lock API calls
2025-04-07 14:38:25 +12:00
G.Ambatte
0bca3393d4
Add LOCK header in comment
2025-04-07 08:39:33 +12:00
G.Ambatte
41bd27b573
Refactor /api/lock/review/remove
2025-04-07 08:37:35 +12:00
G.Ambatte
30430cb8cb
Refactor /admin/lock/review/request
2025-04-07 08:36:33 +12:00
G.Ambatte
3cf98617f5
Refactor /api/lock/reviews
2025-04-07 08:33:39 +12:00
G.Ambatte
fa4b2ae0e3
Refactor /api/lock
2025-04-07 08:27:32 +12:00
G.Ambatte
e2b38829f2
Refactor /api/lock/count
2025-04-07 08:25:42 +12:00
G.Ambatte
0a4ac7a35a
Adjust location of package.json
2025-04-06 19:48:32 +12:00
G.Ambatte
ac89f428b2
Post merge fixes
2025-03-27 18:25:56 +13:00
G.Ambatte
7765cb31bf
Merge branch 'master' into addLockRoutes-#3326
2025-03-27 17:43:21 +13:00
David Bolack
2f95cc5f45
Merge branch 'master' into localSnippetEditor
2025-03-24 15:10:25 -05:00
G.Ambatte
cb61891450
Change local regex testing
2025-03-22 12:31:38 +13:00
Víctor Losada Hernández
f076e05f49
js files
2025-03-18 19:46:11 +01:00
Víctor Losada Hernández
547682a59a
Merge branch 'master' into allow-all-origins-when-local
2025-03-18 09:31:10 +01:00
David Bolack
ab6c1ae402
Merge branch 'master' into localSnippetEditor
2025-03-14 17:44:32 -05:00
Víctor Losada Hernández
94bcc8e997
update to include all possible local adresses
2025-03-13 22:59:23 +01:00
Víctor Losada Hernández
72c2857237
initial fix
2025-03-13 22:32:12 +01:00
Víctor Losada Hernández
e523886345
lint server api
2025-03-08 13:42:49 +01:00
Trevor Buckner
7e5bade4fa
Merge branch 'master' into writeinBrewTheme
2025-02-13 16:21:17 -05:00
Trevor Buckner
ed30a1cd7d
Update other tests to pass
2025-02-13 16:20:59 -05:00
Trevor Buckner
94f478477d
Add test for missing meta:theme tag
2025-02-13 16:20:50 -05:00
Trevor Buckner
d8d672fada
Error message if chosen theme does not have "meta:theme" tag.
2025-02-13 15:51:06 -05:00
Trevor Buckner
f326d11232
Added input validation (allows Share ID or Share URL)
2025-02-13 00:05:30 -05:00
Víctor Losada Hernández
489f00b785
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into update-admin
2025-02-12 12:08:34 +01:00
Trevor Buckner
c080e5b191
Add author to snippetBundle
2025-02-10 22:20:12 -05:00
G.Ambatte
6d2cbaacc0
Add Admin API for getByUser
2025-02-05 21:35:21 +13:00
Víctor Losada Hernández
3ce9bb1310
initial commit
2025-01-31 23:20:35 +01:00
David Bolack
94a431eec8
Update tests.
2025-01-07 22:28:12 -06:00
David Bolack
74122d9057
Display name of write in theme next to write-in
...
Clear user's active ThemeBundle when an incomplete/broken/invalid writein.
Needs theming help.
2025-01-07 22:11:01 -06:00
David Bolack
9745daf6e2
Merge branch 'master' into writeinBrewTheme
2024-12-20 15:19:06 -06:00
David Bolack
5f54777663
Merge branch 'master' into localSnippetEditor
2024-12-20 15:18:25 -06:00
G.Ambatte
7a41a140fd
Merge branch 'master' into fixAdminAddedAsAuthor-#3952
2024-12-19 17:00:26 +13:00
Trevor Buckner
57467701d0
Fetch Google Brew if only stub requested but nothing found
...
/update/ requests only the stub for updating. But if no stub exists, we should fetch the full brew so we return *something*.
2024-12-18 23:00:01 -05:00
G.Ambatte
7a169cbd9e
Linter clean up
2024-12-19 16:20:28 +13:00
G.Ambatte
2dc8a8fbe9
Remove req.account from update request
2024-12-19 16:20:04 +13:00
Trevor Buckner
5f14f656ef
Logging
2024-12-18 17:23:38 -05:00
Trevor Buckner
6e8a0d7314
current user owns 0-author brew only if edit mode
...
Previous code was treating /share/ visits to google brews with no stub as visits by owner, thus using their own credentials to open the file instead of serviceaccount
2024-12-18 17:07:09 -05:00
Trevor Buckner
e61144beb8
Mark as owner if stub doesn't exist
...
Old Google Drive files without a stub have no author, so if no stub exists, consider the current user the owner.
2024-12-18 13:45:53 -05:00
Trevor Buckner
64b792c645
Fix case where no stub is found
...
When retrieving a Google Brew with no stub yet, if the user is not logged in or has expired credentials, we enter this error handler. However, the error message itself tries to send a list of authors.
If there was no stub, we crash here with a 500 error.
This adds conditional operator to any stub value so we can send the actual "not logged in" error in case of no stub.
2024-12-18 13:02:14 -05:00
Trevor Buckner
aee5b7a8cc
Require user to be logged in to change name
2024-12-18 12:14:08 -05:00
Trevor Buckner
bc14246fe7
fix import
2024-12-16 17:58:08 -05:00
Trevor Buckner
fcf985a115
Restore content-negotiation test
2024-12-16 17:42:06 -05:00
Trevor Buckner
a060fd123c
Merge branch 'master' into fixContentNegotiationTestFail-#3904
2024-12-16 17:39:34 -05:00
Víctor Losada Hernández
efa8f3fedf
remove unnecessary, cluttering logs
2024-12-16 22:13:14 +01:00
Víctor Losada Hernández
35be1e9b94
quickfix
2024-12-16 16:43:40 +01:00
Víctor Losada Hernández
a9275698fa
add comment to tell future me to remove logs when feature comes
2024-12-14 23:41:05 +01:00
Víctor Losada Hernández
99f2972079
fixes as asked
2024-12-14 23:34:12 +01:00
Víctor Losada Hernández
afc92c4545
fix check client version middleware to stop checking outside calls
2024-12-14 22:30:24 +01:00
Víctor Losada Hernández
b26526a2f1
lint and logging pass prepared for in server auth from this end
2024-12-14 22:24:52 +01:00