0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00
Commit Graph

947 Commits

Author SHA1 Message Date
Trevor Buckner
cbc6956221 Merge pull request #4334 from G-Ambatte/addTokenTests
Add token.js tests
2025-07-14 13:15:43 -04:00
Trevor Buckner
248d2038ec Cleanup token.js 2025-07-14 13:10:19 -04:00
G.Ambatte
77bf3ffc6f Merge branch 'master' into addTokenTests 2025-07-14 14:46:07 +12:00
G.Ambatte
90ee08de42 Add text property to test object 2025-07-14 11:06:35 +12:00
G.Ambatte
40839b18e4 Add tests for token.js 2025-07-14 00:14:58 +12:00
Trevor Buckner
9da8a17053 Remove text mismatch logs 2025-07-10 17:17:25 -04:00
Trevor Buckner
7cadbfbd7b allowExceedingIndices for our patch applier
Test if it allows patches to go through, and log error if it doesn't match the expected output.
2025-07-10 17:11:31 -04:00
Trevor Buckner
489b4b2694 Also log differences on MD5 mismatch 2025-07-10 12:04:09 -04:00
Trevor Buckner
8d279260c2 Merge branch 'master' into AdditionalPatchLogging 2025-07-10 11:19:07 -04:00
Trevor Buckner
45689d119e Comment out one failing test
Patch failure test is no longer being thrown while we monitor in the background
2025-07-10 11:18:39 -04:00
Trevor Buckner
c5805af935 On patch failure, compare client and server text bytewise 2025-07-10 11:12:42 -04:00
Trevor Buckner
b2c4bb7082 Merge branch 'master' into experimentalSplitHashAndVersionChecks 2025-07-10 11:06:29 -04:00
David Bolack
c7610cf0f8 Run patch processing in parallel to prior system to attempt to narrow down not-quite-so-edge cases that did not come up prior to user testing. 2025-07-10 07:10:13 -05:00
G.Ambatte
7f3a818558 Add Homebrew API coverage tests 2025-07-10 23:25:57 +12:00
G.Ambatte
bc82afa5b2 Split version from hash checks 2025-07-10 21:42:51 +12:00
Trevor Buckner
7ba7991631 Additional diff server error logging 2025-07-10 00:37:03 -04:00
Trevor Buckner
daf4eceedd Small rearrangement 2025-07-09 22:09:16 -04:00
David Bolack
a02361ee65 Move normalization to before diffing 2025-07-09 19:37:57 -05:00
David Bolack
81e20f032e NOrmalize strings before rnuning MD5s 2025-07-09 18:52:45 -05:00
David Bolack
0f4157d084 Add Patch wrapper/unwrapper for saves
Object encapsulation for the win?
2025-07-09 17:16:47 -05:00
Trevor Buckner
6414e73e7d Cleanup and better handling of pre-save snapshot 2025-07-08 15:50:27 -04:00
Trevor Buckner
41daf8d172 comment out hash check 2025-07-07 21:05:50 +00:00
Trevor Buckner
4c897fdeb5 Add MD5 hash check 2025-07-07 21:00:03 +00:00
Trevor Buckner
e1e661976d Initial test 2025-06-27 08:07:02 -04:00
Trevor Buckner
862fa7de89 Don't send full text back to client on save
We return the stub after saving. When saving to HB MongoDB, the stub also includes the full text. This does not need to be sent back to the client.
2025-06-24 17:44:22 -04:00
David Bolack
bbb812cb06 Clone snippets 2025-05-25 08:07:50 -05:00
Víctor Losada Hernández
4cc2d429c5 try to pass it as title 2025-05-02 17:15:24 +02:00
Víctor Losada Hernández
b914bf3bf5 simple as cake 2025-05-02 17:09:09 +02:00
Víctor Losada Hernández
9c1a0fd798 Merge branch 'master' into addLockRoutes-#3326 2025-04-10 13:46:15 +02:00
G.Ambatte
0c33df1cd6 Add tests for lock API functions 2025-04-10 19:15:34 +12:00
G.Ambatte
73bb6acc14 Update locked brew test for new structure 2025-04-10 10:21:35 +12:00
David Bolack
c6cd6e9864 A little bit of cleanup and structure flattening
Fixes failed tests.
2025-04-08 20:29:32 -05:00
G.Ambatte
5e7e314baa Update fields returned for Lock and Review Tables 2025-04-09 11:38:57 +12:00
G.Ambatte
95f44f4460 Revert unnecessary change in app.js 2025-04-09 11:04:57 +12:00
G.Ambatte
bd68b9c0cb Remove unnecessary variable 2025-04-09 10:48:02 +12:00
G.Ambatte
b19d05fbf7 Remove commented out console.logs 2025-04-09 10:41:58 +12:00
G.Ambatte
be2f1786b5 Add authors to locked brew error message 2025-04-09 09:59:34 +12:00
David Bolack
d0c3765f8f Move Snippets store to metadata block.
Note this still stores the snippets as a string for the passed about brew object.
2025-04-07 23:22:47 -05:00
G.Ambatte
1ded1cad5a Change accessType check 2025-04-08 09:28:54 +12:00
G.Ambatte
ec6258a2a5 Add overwrite option to API function 2025-04-07 22:02:53 +12:00
G.Ambatte
ab9b151b8a Add API route to return all locked brews 2025-04-07 20:52:35 +12:00
G.Ambatte
26aa302714 Remove debugging test route 2025-04-07 20:04:45 +12:00
G.Ambatte
a218b87215 Shift remaining lock API functions to use throw 2025-04-07 16:32:33 +12:00
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