Marcin Kurczewski
3a34609fa4
Fixed config for tests
2014-06-10 12:31:42 +02:00
Marcin Kurczewski
d242eedb31
Improved checks for concurrent post edits
2014-06-10 10:49:11 +02:00
Marcin Kurczewski
538165e3ff
Moved job context management to interface
2014-06-10 10:48:08 +02:00
Marcin Kurczewski
320cd2e194
Simplified post revision management
2014-06-01 14:07:53 +02:00
Marcin Kurczewski
894457363e
Fixed upgrading test database
2014-06-01 14:06:46 +02:00
Marcin Kurczewski
bf8e6e9e00
Simplified thumbnail and content retrieval code
2014-06-01 13:51:29 +02:00
Marcin Kurczewski
132e9ce3c0
Simplified test config management
2014-06-01 13:43:35 +02:00
Marcin Kurczewski
4ec0df17d6
Added script unit tests
2014-06-01 13:41:08 +02:00
Marcin Kurczewski
e382dc7f7d
Fixed rare bug regarding last login time
2014-05-28 21:22:31 +02:00
Marcin Kurczewski
0ebfaf991a
Fixed login errors for corrupt cookies
2014-05-26 12:53:50 +02:00
Marcin Kurczewski
8b48ba727e
Added option to disallow anonymous uploads
2014-05-26 12:40:02 +02:00
Marcin Kurczewski
34b5de72f5
Moved some config keys
2014-05-26 12:30:23 +02:00
Marcin Kurczewski
50e4b40721
Upgraded to newest chibi
...
- Separate non-static router class
- Moved some setup code to new method, Core::init
- Persistent database connection between tests
2014-05-23 23:34:50 +02:00
Marcin Kurczewski
174fd80a73
Added name: keyword in post search
2014-05-20 23:12:24 +02:00
Marcin Kurczewski
fee19c61bc
Added support for custom avatars
2014-05-20 23:00:25 +02:00
Marcin Kurczewski
e12308d3cc
Changed thumb to thumbnail for consistency
2014-05-20 23:00:24 +02:00
Marcin Kurczewski
72fef5686b
Fixed user settings across sessions
...
When getting settings from database, running across NULL loads default
setting for given option. Becuase entity unserializer always returned
NULLs instead of FALSEs due to bug in TextHelper, it ended up always
loading default settings (but only after reloading entity, setting it in
the settings page worked correctly until relog).
This fix is closely related to fde6fc2
.
2014-05-19 09:58:08 +02:00
Marcin Kurczewski
c50c368d2f
Fixed last login time
2014-05-18 21:59:57 +02:00
Marcin Kurczewski
e59b7e8b7b
Refactored privilege system a bit
...
- Jobs specify main privilege and sub privileges separately
Rationale: increase maintenance, restrict what can be done runtime
- Renamed ChangeUser* to EditUser* (consistency with EditPost*)
- Simplified enum names and configuration reading
- IJob interface members must be explicitly implemented
Rationale: reduce chances of forgetting something, or typos in
inherited method names
- Invalid privileges names in configuration yield exceptions
2014-05-18 21:59:56 +02:00
Marcin Kurczewski
de078677fe
Reduced job hierarchy
2014-05-18 21:59:56 +02:00
Marcin Kurczewski
03a6809510
Added API controller
2014-05-18 21:59:56 +02:00
Marcin Kurczewski
ee3f2ca9d3
Added help to test runner
2014-05-18 21:32:47 +02:00
Marcin Kurczewski
538c5054d6
Fixed youtube uploads
2014-05-18 21:32:47 +02:00
Marcin Kurczewski
53f4d77ff3
Increased readability
2014-05-18 21:32:47 +02:00
Marcin Kurczewski
c501ccdff1
Fixed issues with variable types
...
- False booleans were serialized as NULLs, which lead to problems with
queries like 'SELECT ... WHERE NOT x'
- Fixed anonymous uploads
- More robust integer and boolean parsing in jobs
2014-05-18 21:32:47 +02:00
Marcin Kurczewski
aa20b81229
Enhanced support for MySQL
2014-05-17 00:02:02 +02:00
Marcin Kurczewski
3f93973a12
Added support for MySQL in test runner
2014-05-17 00:02:02 +02:00
Marcin Kurczewski
e84f8096bd
Removed legacy functions
2014-05-17 00:02:01 +02:00
Marcin Kurczewski
22b18bfbc9
Refactored TestRunner and core
2014-05-15 09:50:54 +02:00
Marcin Kurczewski
c7250ae0a9
Improved thumbnail generating
...
- Moved thumbs folder to public_html/
- Users can supply custom thumbs of any size and the system will treat
them like normal image
- Removed distinction between various thumb sizes in file system
- Introduced custom rewrite rule, which isn't exactly good-looking, but
its benefits far outweigh its shortcomings
- Loading up to 75 times faster (was: 100-300ms, is: 4-10ms on my
machine) thanks to removal of PHP proxying
2014-05-14 23:44:48 +02:00
Marcin Kurczewski
1bc219a162
Added job for property reading
2014-05-14 19:14:16 +02:00
Marcin Kurczewski
700f2bc8ae
Added method filter support to test runner
2014-05-14 19:14:16 +02:00
Marcin Kurczewski
95e37e55eb
Restored support for anonymous setting changes
2014-05-14 19:06:43 +02:00
Marcin Kurczewski
087d50f61b
Fixed isNull in assert
2014-05-14 19:06:43 +02:00
Marcin Kurczewski
2e12e4f39d
Added jobs for user settings manipulation
2014-05-14 19:06:43 +02:00
Marcin Kurczewski
b811e76318
Moved user settings to separate class
2014-05-14 19:06:43 +02:00
Marcin Kurczewski
331691e332
Fixed constructing job file list in tests
2014-05-14 19:06:42 +02:00
Marcin Kurczewski
186a680e98
Added "sort:" keyword in search
2014-05-14 19:06:42 +02:00
Marcin Kurczewski
a99e0d93f0
Added tests for post list sort styles
2014-05-14 19:06:42 +02:00
Marcin Kurczewski
a2507370cc
Fixed thumb generating
...
New thumbs worked only after refreshing the page and showed placeholder
thumb prior to that. Now they load correctly without need to reload.
2014-05-13 21:21:24 +02:00
Marcin Kurczewski
a38b280098
Reorganized tests file structure
2014-05-13 21:16:28 +02:00
Marcin Kurczewski
bca92f1f71
Added more unit tests, refactored test support
2014-05-13 21:10:37 +02:00
Marcin Kurczewski
dcd2c8aa06
Added post content existence validation
2014-05-13 19:11:21 +02:00
Marcin Kurczewski
561ebd5508
Made ARG_QUERY optional
2014-05-13 19:11:21 +02:00
Marcin Kurczewski
ae12fdeaec
Changed logger so it avoids blank lines
2014-05-13 19:11:21 +02:00
Marcin Kurczewski
6399afd799
Added more unit tests
2014-05-13 00:02:25 +02:00
Marcin Kurczewski
5d9513bac0
Modified post path management
2014-05-13 00:01:28 +02:00
Marcin Kurczewski
5514ed4fd6
Fixed exception throw in UserModel
2014-05-12 23:04:35 +02:00
Marcin Kurczewski
b8bb2c865e
Moved setRelationsFromText logic to controller
2014-05-12 22:39:14 +02:00
Marcin Kurczewski
4395087a7c
Fixed confirming user registration by staff
2014-05-12 20:10:19 +02:00