summaryrefslogtreecommitdiff
path: root/server/szurubooru/tests/func/test_posts.py
AgeCommit message (Collapse)Author
2024-12-07server+client: use safety rating param in "lookalikes" apiHunternif
2021-08-04Merge branch 'master' into hunternifHunternif
2021-08-04Merge remote-tracking branch 'origin/master' into hunternifHunternif
# Conflicts: # client/css/post-content-control.styl # client/css/post-list-view.styl # client/html/post_edit_sidebar.tpl # client/js/controllers/post_list_controller.js # client/js/controllers/post_main_controller.js # client/js/controllers/post_upload_controller.js # client/js/controllers/tag_controller.js # client/js/controllers/user_list_controller.js # client/js/controls/expander_control.js # client/js/controls/post_content_control.js # client/js/controls/post_edit_sidebar_control.js # client/js/controls/post_readonly_sidebar_control.js # client/js/controls/tag_input_control.js # client/js/main.js # client/js/models/abstract_list.js # client/js/models/post.js # client/js/models/post_list.js # client/js/models/settings.js # client/js/models/tag.js # client/js/models/tag_list.js # client/js/tags.js # client/js/util/search.js # client/js/util/touch.js # client/js/util/uri.js # client/js/util/views.js # client/js/views/post_main_view.js # client/js/views/post_upload_view.js # client/js/views/posts_header_view.js # client/js/views/posts_page_view.js # client/js/views/settings_view.js # client/js/views/tag_view.js # client/package-lock.json # client/package.json # server/config.yaml.dist # server/szurubooru/api/__init__.py # server/szurubooru/api/post_api.py # server/szurubooru/api/tag_api.py # server/szurubooru/func/posts.py # server/szurubooru/func/tags.py # server/szurubooru/model/__init__.py # server/szurubooru/model/post.py # server/szurubooru/model/tag.py # server/szurubooru/search/configs/__init__.py # server/szurubooru/search/configs/post_search_config.py # server/szurubooru/search/executor.py # server/szurubooru/tests/api/test_post_retrieving.py # server/szurubooru/tests/api/test_post_updating.py # server/szurubooru/tests/api/test_tag_updating.py # server/szurubooru/tests/conftest.py # server/szurubooru/tests/func/test_posts.py # server/szurubooru/tests/func/test_tags.py # server/szurubooru/tests/search/configs/test_post_search_config.py
2021-06-01Merge branch 'avif'neobooru
Merges PR #399
2021-05-09Support BMP format uploadsRuin0x11
2021-05-07Add AVIF/HEIF/HEIC upload supportRuin0x11
2021-01-05server/posts: store and provide MD5 checksumsShyam Sunder
2020-09-19server/pools: serialize pools as micro resource within post resourcesShyam Sunder
Fixes #348
2020-09-01client+server: fix linter issues due to updated pre-commit hooksShyam Sunder
2020-06-06client+server: implement code autoformatting using prettier and blackShyam Sunder
2020-06-04client+server: add post pools featureShyam Sunder
2020-06-04server/docker: fix missing installation requirementsShyam Sunder
Furthermore, an update to Pillow has improved the floating-point precision of the image hash algorithm, requiring minor updates to the respective unit tests. See https://github.com/python-pillow/Pillow/pull/4320
2020-06-03fix python lint issuesShyam Sunder
2020-05-04Add pool information to API.mdRuin0x11
2020-05-04Add pool testsRuin0x11
2020-03-13server/tests: update unit tests for elasticsearch removalShyam Sunder
2019-09-28server/tests: fix failing testsShyam Sunder
2019-04-21server: serialize post_id for post metrics and rangesHunternif
2019-04-19server: serialize post metrics and metric ranges in postIlya Tetin
2018-03-08server/posts: deleting a post purges its artifactsReAnzu
Specifically, its thumbnail and post source.
2017-10-01remove tags.jsonrr-
2017-08-24server/posts: add non-guessable IDs to post URLsrr-
2017-04-24server/tests: fix content sync tests on postgresrr-
2017-02-05server: refactor + add type hintingrr-
- Added type hinting (for now, 3.5-compatible) - Split `db` namespace into `db` module and `model` namespace - Changed elastic search to be created lazily for each operation - Changed to class based approach in entity serialization to allow stronger typing - Removed `required` argument from `context.get_*` family of functions; now it's implied if `default` argument is omitted - Changed `unalias_dict` implementation to use less magic inputs
2017-02-03server: make linters happierrr-
2017-02-03server/tests: test image hashrr-
2017-01-03server/posts: fix post relationsrr-
Trying to relate post to itself resulted in 500 ISE.
2016-12-26server/image-hash: add image search enginerr-
2016-10-21server/posts: add replaceContent to post mergingrr-
2016-10-21server/posts: add post mergingrr-
2016-10-02server/posts: fix relation updatingrr-
Fixes #103
2016-09-10server/posts: report duplicate post ID and URLrr-
2016-08-26server/posts: defer flush; save content lazilyrr-
Rather than flushing the post right away only to find out that there were validation errors, try to postpone flushing for as long as possible. The previous behavior has led to too eager spending of post IDs - each flush calls nextval(post_id_seq), and postgres sequences are not affected by transaction rollbacks, so each erroneous post creation discarded a post ID, which has led to gaps in post IDs.
2016-08-26server/general: disable autoflushrr-
2016-08-20server/posts: use SHA1 checksumsrr-
This changes the checksums to ones that are compatible with 1.x, which relieves the migration script from recalculating the checksums for all the posts.
2016-08-16server/snapshots: rewriterr-
2016-08-16server/tests: use real databaserr-
I'm experimenting with snapshots and found following limitation of SQLite: https://www.sqlite.org/isolation.html
2016-08-14server/general: embrace most of PEP8rr-
Ignored only the rules about continuing / hanging indentation. Also, added __init__.py to tests so that pylint discovers them. (I don't buy pytest's BS about installing your package.)
2016-08-14server/tests: update func.posts testsrr-
2016-08-14server/general: authenticated_user->auth_userrr-
2016-08-14server/posts: add more safety checks for notesrr-
2016-08-14server/tags: don't auto-create tag categoriesrr-
2016-08-07server/general: add entity versionsrr-
2016-08-02server/posts: respect tag creating privilegerr-
2016-07-17server/posts: fix relations bidirectionalityrr-
2016-07-03server/posts: add relationCount fieldrr-
2016-07-03server/posts: make relations bidirectionalrr-
2016-06-08server/posts: add ownFavorite field to postsrr-
2016-06-03server/users: reduce user fields footprintrr-
2016-05-30server/posts: add new fieldsrr-