Mercurial > getan
changeset 450:45b7b83efaed
Prepares for release 2.2.
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Fri, 26 Jan 2018 13:15:34 +0100 |
parents | 50b00768575e |
children | 25875d89bb89 |
files | CHANGES README TODO doc/old_issues.txt getan/__init__.py test_data/getan_test_data.py |
diffstat | 6 files changed, 75 insertions(+), 56 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES Mon Jan 22 08:14:34 2018 +0100 +++ b/CHANGES Fri Jan 26 13:15:34 2018 +0100 @@ -1,6 +1,10 @@ -2.x 20xx-xx-xx UNRELEASED +2.2 2018-01-26 -TODO + * The problem with unwanted multi moves and deletions is solved. + The multi-selection is deleted when switching from the entrie list to + project list. This avoids errors when moving or erasing. + More information can be found in /getan/doc/old_issues.txt -20180117 + Patch by Magnus Schieder * Improves 'move' operation to work in the current entry, if there is no selection. This is more consistent with 'delete'. Patch by Frank Koormann.
--- a/README Mon Jan 22 08:14:34 2018 +0100 +++ b/README Fri Jan 26 13:15:34 2018 +0100 @@ -193,6 +193,7 @@ Contributions ------------- +Magnus Schieder Frank Koormann Stephan Holl Tom Gottfried
--- a/TODO Mon Jan 22 08:14:34 2018 +0100 +++ b/TODO Fri Jan 26 13:15:34 2018 +0100 @@ -1,17 +1,5 @@ 20180117 Magnus Schieder - 20170317 BER: Reproduce and then fix a defect that it is surprising which - entries are moved by `m` or deleted by 'd'. - It probably has to do how multi-selection are handled. Maybe they - are not cleared properly at the end of an operation. - One description: It happens when you have changed a lot of entries - from different projects (I assume), e.g. by editing the description, - the length or timedate and then use move where you intend to only move - one, the unwanted result is several moved entries. - - reproduced with getan 2.1 - 20180118BER Reproduced with urwid v1.3.0, python3.4.6, getan 2.2.dev1 r445 - Creating a new database with test data: 1) Delete getan_test_data.db if it already exists to create a new database. @@ -27,37 +15,9 @@ 20180118BER: Observation: ent1 and ent2 are not highlighted anymore. - 6) Switch back to the entries of project pro1. - 7) Mark this time ent3 and ent4. - 8) Press m, then 3 and then y to move ent3 and ent4 to pro3. - - Expectation: - ent3 and ent4 are moved to pro3. - - Result: - ent1, ent2, ent3 and ent4 were moved to pro3. - -- Bug 1.1 - Execute 1) to 7) from 1.0. - 8) Press d to delete ent3 and ent4. - - Expectation: - ent3 and ent4 are deleted. - - Result: - ent1, en2, ent3 and ent4 are deleted. - -- Bug2 - Execute 1) to 4) from 1.0. - 5) Press m. - 6) Now also mark ent3 and pro ent4. - 7) Press 3 and then y to move ent1, ent2, ent3 and ent4 to pro3. - - Expectation: - After pressing m, you can not mark additional entries. - - Result: - Only ent1 and ent2 are moved, though all are selected. + 20180126 Magnus Schieder + The selection is deleted when switching to the projects. + So ent1 and ent2 should not highlighted anymore. 20180118 BER There should be an indication which entries are shown when being in the right pane. When you use tab to go to the entries,
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/old_issues.txt Fri Jan 26 13:15:34 2018 +0100 @@ -0,0 +1,50 @@ +20180117 Magnus Schieder + + 20170317 BER: Reproduce and then fix a defect that it is surprising which + entries are moved by `m` or deleted by 'd'. + It probably has to do how multi-selection are handled. Maybe they + are not cleared properly at the end of an operation. + One description: It happens when you have changed a lot of entries + from different projects (I assume), e.g. by editing the description, + the length or timedate and then use move where you intend to only move + one, the unwanted result is several moved entries. + + reproduced with getan 2.1 + 20180118BER Reproduced with urwid v1.3.0, python3.4.6, getan 2.2.dev1 r445 + + Creating a new database with test data: + + 1) Delete getan_test_data.db if it already exists to create a new database. + 2) Execute getan_test_data.py to get the test database getan_test_data.db. + (getan/test_data/getan_test_data.py) + +- Bug 1.0 + 2) Open getan with the test database. (getan /path/getan_test_data.db) + 3) Switch to the entries from the project pro1 with tab. + 4) Mark with return and arrow keys ent1 and ent2. + 5) Go back to the projects with tab. + + 20180118BER: + Observation: ent1 and ent2 are not highlighted anymore. + + 6) Switch back to the entries of project pro1. + 7) Mark this time ent3 and ent4. + 8) Press m, then 3 and then y to move ent3 and ent4 to pro3. + + Expectation: + ent3 and ent4 are moved to pro3. + + Result: + ent1, ent2, ent3 and ent4 were moved to pro3. + +- Bug 1.1 + Execute 1) to 7) from 1.0. + 8) Press d to delete ent3 and ent4. + + Expectation: + ent3 and ent4 are deleted. + + Result: + ent1, en2, ent3 and ent4 are deleted. + +
--- a/getan/__init__.py Mon Jan 22 08:14:34 2018 +0100 +++ b/getan/__init__.py Fri Jan 26 13:15:34 2018 +0100 @@ -6,5 +6,5 @@ # This is Free Software licensed under the terms of GPLv3 or later. # For details see LICENSE coming with the source of 'getan'. -__version_info__ = ("2", "2", "dev2") +__version_info__ = ("2", "2") __version__ = '.'.join(__version_info__)
--- a/test_data/getan_test_data.py Mon Jan 22 08:14:34 2018 +0100 +++ b/test_data/getan_test_data.py Fri Jan 26 13:15:34 2018 +0100 @@ -1,15 +1,18 @@ #!/usr/bin/env python3 -# -# Author: Magnus Schieder <magnus.schieder@intevation.de> -# (c) 2018 Intevation GmbH -# + # Program to create test data for getan (getan_test_data.db). -# Please delete existing getan_test_data.db. -# Open getan with getan_test_data.db: getan /path/getan_test_data.db -# -# This is Free Software licensed under the terms of GPLv3 or later. -# For details see LICENSE coming with the source of 'getan'. -# + +""" + Author: Magnus Schieder <magnus.schieder@intevation.de> + (c) 2018 Intevation GmbH + + Please delete existing getan_test_data.db. + Execute getan_test_data.py to get the test database getan_test_data.db. + Open getan with getan_test_data.db: getan /path/getan_test_data.db + + This is Free Software licensed under the terms of GPLv3 or later. + For details see LICENSE coming with the source of 'getan'. +""" import sqlite3 @@ -68,6 +71,7 @@ conn.commit() conn.close() + print("getan_test_data.db was created.") if __name__ == '__main__': main()