Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [feature/soft-delete] Add test case for (soft)deleting the only post + fix | Joas Schilling | 2012-10-06 | 4 | -4/+93 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Fix delete_post() function | Joas Schilling | 2012-10-06 | 2 | -27/+44 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Add some unit tests for delete_post() | Joas Schilling | 2012-10-06 | 2 | -0/+353 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Update and simplify the logic on delete_post() | Joas Schilling | 2012-10-06 | 2 | -57/+48 |
| | | | | | | Todo: delete_topic case PHPBB3-9567 | ||||
* | [feature/soft-delete] Fix SQL error in search | Joas Schilling | 2012-10-05 | 2 | -1/+2 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Clean the code of hide_post() and rely on postcount | Joas Schilling | 2012-10-05 | 1 | -29/+12 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Update docs of can_soft_delete and remove can_restore | Joas Schilling | 2012-10-05 | 2 | -29/+10 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Fix set_topic_visibility() so it passes the tests | Joas Schilling | 2012-10-05 | 1 | -2/+2 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Add unit tests for set_topic_visibility() | Joas Schilling | 2012-10-05 | 2 | -0/+239 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Fix docs of set_post_visibility() | Joas Schilling | 2012-10-05 | 1 | -0/+3 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Update set_topic_visibility() with some more logic | Joas Schilling | 2012-10-05 | 1 | -6/+24 |
| | | | | | | | | | | By default, when a soft deleted topic is restored. Only posts that were approved at the time of soft deleting, are being restored. Same applies to soft deleting. Only approved posts will be marked as soft deleted. If you want to update all posts, use the force option. PHPBB3-9567 | ||||
* | [feature/soft-delete] Allow forcing the set_visibility for all posts | Joas Schilling | 2012-10-05 | 1 | -12/+15 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Make use of set_post_visibility() limits when applicable | Joas Schilling | 2012-10-05 | 1 | -4/+28 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Extend functionality for updating a hole topic | Joas Schilling | 2012-10-05 | 2 | -19/+30 |
| | | | | | | | | | Limit the posts to a certain visibility and deletion time This allows us to only restore posts, that were approved when the topic got soft deleted. So previous soft deleted and unapproved posts are still soft deleted/unapproved PHPBB3-9567 | ||||
* | [feature/soft-delete] Fix sync('topic') to match the new logic | Joas Schilling | 2012-10-05 | 4 | -6/+71 |
| | | | | | | This also fixes set_post_visibility() PHPBB3-9567 | ||||
* | [feature/soft-delete] Fix the get functions to match the new logic | Joas Schilling | 2012-10-05 | 1 | -103/+35 |
| | | | | PHPBB3-9567 | ||||
* | [feature/soft-delete] Merge functionality of m_approve and m_restore | Joas Schilling | 2012-10-05 | 3 | -62/+4 |
| | | | | | | | | | | | The problems with having two different permissions are just too big and cause huge queries, if they are granted differently. Also it's quite hard to decide what should happen when a moderator has only one permission and the topic has only posts of the two hidden types. To avoid all this, we merge them so it's a simple switch: either the user is a moderator, then he can see all posts, or he is not, then he can only see approved ones. PHPBB3-9567 | ||||
* | [feature/soft-delete] Test topic visibility as well | Joas Schilling | 2012-10-05 | 1 | -6/+6 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Fix a bug in sync() and set_post_visibility() | Joas Schilling | 2012-10-02 | 2 | -10/+11 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Add unit tests for simple cases of set_post_visibility | Joas Schilling | 2012-10-02 | 2 | -0/+246 |
| | | | | | | These tests require at least one remaining post. PHPBB3-9657 | ||||
* | [feature/soft-delete] Remove unneeded require_once() | Joas Schilling | 2012-10-02 | 3 | -9/+0 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Update doc blocks to proper format | Joas Schilling | 2012-10-02 | 1 | -14/+25 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Add unit tests for get_global_visibility_sql() | Joas Schilling | 2012-10-01 | 4 | -8/+165 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Add unit tests for get_forums_visibility_sql() | Joas Schilling | 2012-10-01 | 6 | -10/+288 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Add unit tests for get_visibility_sql() | Joas Schilling | 2012-10-01 | 2 | -0/+196 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Remove old unit tests | Joas Schilling | 2012-10-01 | 4 | -546/+0 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Comment out user_posts update for the moment | Joas Schilling | 2012-10-01 | 2 | -1/+11 |
| | | | | | | It should rely on the permissions of the post not the current user. PHPBB3-9657 | ||||
* | [feature/soft-delete] Allow setting the visibility change reason | Joas Schilling | 2012-09-28 | 2 | -18/+39 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Add columns for soft delete details | Joas Schilling | 2012-09-28 | 9 | -7/+61 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Comment out stuff about f_restore for performance reason | Joas Schilling | 2012-09-28 | 1 | -2/+16 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Update column names in update script and add permissions | Joas Schilling | 2012-08-30 | 1 | -10/+57 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Fix some more usages of _approved column names | Joas Schilling | 2012-08-30 | 5 | -50/+16 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Update development scripts with new column names | Joas Schilling | 2012-08-30 | 3 | -3/+3 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Update search to use $post_visibility | Joas Schilling | 2012-08-30 | 5 | -93/+36 |
| | | | | | | Todo: Sphinx currently does not respect this setting at all. PHPBB3-9657 | ||||
* | [feature/soft-delete] Try to fix search.php | Joas Schilling | 2012-08-30 | 2 | -34/+20 |
| | | | | | | at least it's running now, but the performance is not very good. PHPBB3-9657 | ||||
* | [feature/soft-delete] Add get_visibility_sql_forums based on global | Joas Schilling | 2012-08-30 | 2 | -7/+50 |
| | | | | | | | | | The resulting query is 4-times faster, as the forum_id IN () arrays are smaller and we need less AND/OR to build the hole query. The main difference between those two functions is, that this one takes an array of included ids and the _global one takes an array of excluded ids. PHPBB3-9657 | ||||
* | [feature/soft-delete] Fix copy-paste fail for database update on the index | Joas Schilling | 2012-08-30 | 1 | -1/+1 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Simplification part2: user can see all item visibilities | Joas Schilling | 2012-08-29 | 5 | -14/+36 |
| | | | | | | | If the user can see all visibilities, we can simply leave out the query part, instead of adding a bunch of ANDs. PHPBB3-9657 | ||||
* | [feature/soft-delete] Simplify the query output if the user has m_restore | Joas Schilling | 2012-08-29 | 1 | -2/+6 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Update posts and topics table with database_update.php | Joas Schilling | 2012-08-29 | 1 | -2/+40 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Update restoring feature to use ajax if requested. | Joas Schilling | 2012-08-29 | 5 | -12/+33 |
| | | | | | | | | Also fixes the mcp as a hole: - displayes a success message - gives a link to the post, if only one was restored PHPBB3-9657 | ||||
* | [feature/soft-delete] Use the variable which holds the correct item status | Joas Schilling | 2012-08-29 | 1 | -1/+1 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Fix missing AND in query | Joas Schilling | 2012-08-29 | 1 | -2/+2 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Fix displaying of "deleted post" note in viewtopic | Joas Schilling | 2012-08-29 | 2 | -1/+6 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Remove imageset/ which was created by merge conflict | Joas Schilling | 2012-08-29 | 2 | -117/+0 |
| | | | | | | We don't have imagesets in 3.1 anymore. PHPBB3-9657 | ||||
* | [feature/soft-delete] Fix the schema files to the correct line ends again | Joas Schilling | 2012-08-29 | 7 | -8940/+8958 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Fix typo in column name topic_visibility | Joas Schilling | 2012-08-29 | 1 | -1/+1 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Use autoloading for content_visibility class | Joas Schilling | 2012-08-29 | 2 | -6/+2 |
| | | | | PHPBB3-9657 | ||||
* | [feature/soft-delete] Fix some small bugs | Josh Woody | 2012-08-29 | 8 | -25/+98 |
| | | | | | | | | To wit: using non-existing constant POST_DELETED in posting.php; first test post was initially unapproved; soft delete checkbox appeared at post time Links pointing to the wrong place. PHPBB3-9657 | ||||
* | [feature/soft-delete] Add a processor for action == restore in mcp_queue.php | Josh Woody | 2012-08-29 | 1 | -2/+43 |
| | | | | | | Restoring a post within mcp_queue.php didn't do anything before this commit. Now it does, by way of a function which is very similar to approve_post. PHPBB3-9657 |