Kexi/Junior Jobs/Improve handling permission error on database creation: Difference between revisions

From KDE Community Wiki
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Status: In progress''', '''Target: 2.9''', Difficulty: EASY
'''Status: DONE''', '''Target: 2.9''', Difficulty: EASY


Assigned to: Roman Shtemberko <[email protected]>
Assigned to: Roman Shtemberko <[email protected]>
Line 15: Line 15:


http://wstaw.org/m/2014/11/06/plasma-desktopMJ1850.png
http://wstaw.org/m/2014/11/06/plasma-desktopMJ1850.png
This message can clearly confuse users. Roman properly noted that it's not clear if SQLite has raised error because it's misconfigured. It isn't but user shouldn't have to guess.


==The Task==
==The Task==
Line 23: Line 25:
       "<note>There is no permission to create this file. "
       "<note>There is no permission to create this file. "
       "Pick another directory or change permissions so the file can be created.</note>",
       "Pick another directory or change permissions so the file can be created.</note>",
       QDir::convertSeparators(dbFileName));
       dbFileName);
</pre>
</pre>


Then, do not move to next page. As you see on the second screenshot, otherwise user is unable to move back to previous page to change the path.
Then, do not move to next page. As you see on the second screenshot, otherwise user is unable to move back to previous page to change the path.

Latest revision as of 22:51, 18 November 2014

Status: DONE, Target: 2.9, Difficulty: EASY

Assigned to: Roman Shtemberko <[email protected]>

Proposed and mentored by Jstaniek (talk) 09:33, 6 November 2014 (UTC)

Description

When creating a new SQLite-based .kexi file, pick non-writable folder. Example ('/' is clearly non-writable):

plasma-desktopeB1850.png

When you press Next:

plasma-desktopMJ1850.png

This message can clearly confuse users. Roman properly noted that it's not clear if SQLite has raised error because it's misconfigured. It isn't but user shouldn't have to guess.

The Task

Check write permissions for the file before creation is even requested, before "Next" step is handled. In case of error, display this message:

i18nc("@info", "Could not create database file <filename>%1</filename>. "
      "<note>There is no permission to create this file. "
      "Pick another directory or change permissions so the file can be created.</note>",
      dbFileName);

Then, do not move to next page. As you see on the second screenshot, otherwise user is unable to move back to previous page to change the path.