Commit Graph

3343 Commits

Author SHA1 Message Date
Martin Kleusberg 2e9580365b dbhub: Add toolbar action for fetching the latest commit
This adds a new toolbar action to the Current Database tab of the Remote
dock which downloads and updates to the latest commit of the currently
opened database and branch.
2020-07-23 13:22:50 +02:00
Martin Kleusberg e51aa2eebe Add GUID display format
Add a display format to convert binary GUIDs to their text representation.

See issue #2342.
2020-07-23 11:22:29 +02:00
Martin Kleusberg 4c4e55f890 dbhub: Add context menu actions to all tree views
This adds context menus and some context menu actions to all the tree
views in the Remote dock. No new features are added. This just adds a
new way to trigger existing features but also establishes a place for
future actions for new features.
2020-07-23 11:03:50 +02:00
Martin Kleusberg 1af81359a9 dbhub: Only show warning about losing unsaved changes when downloading
Make sure to only show a warning that local changes might be lost before
actually downloading a database and overriding the local copy. When we
just open the local copy, no warning needs to be shown.
2020-07-22 14:55:39 +02:00
Martin Kleusberg 5cf95f82be Fix build for older versions of Qt 2020-07-22 14:48:50 +02:00
Martin Kleusberg fc4deeb9bc dbhub: In Push dialog preselect the current branch
Instead of always selecting the default branch select the currently used
branch in the Push Database dialog. Only default to the default branch
if no current branch is available.
2020-07-22 14:32:01 +02:00
Martin Kleusberg 065adabe75 dbhub: Allow checking out different commits and different branches
After opening a clone of a remote database, allow checking out the
different branches and commits of this database in the Current Database
section. This way you access all branches and see their history in DB4S.
2020-07-22 14:21:35 +02:00
Martin Kleusberg f67d72df17 Use native path separators in Preferences dialog
Thanks to @chrisjlocke for pointing this out.
2020-07-22 12:13:38 +02:00
Martin Kleusberg 9a8bcafaf1 dbhub: Add refresh button to both tool bars
This allows updating the data in case it has changed on the DBHub.io
servers.
2020-07-21 22:28:13 +02:00
Martin Kleusberg fa1930135d dbhub: Some UI improvements
Move the Clone database button to a newly created tool bar in the
DBHub.io tab of the Remote dock.

Transform labels in the Current Database tab into line edit widgets.

Adjust spacings a bit.
2020-07-21 22:22:16 +02:00
Nikolay Korotkiy 73819f5f5e Fix cmake build on macOS 2020-07-21 13:39:34 +02:00
Justin Clift 66ab497d2f Merge pull request #2339 from lucydodo/update-building
Update BUILDING.md for macOS (Fix #2338)
2020-07-21 08:26:22 +10:00
SeongTae Jeong 31fa71e248 Update binary build instruction for macOS (#2338)
I modified it by referring by Issue 2338.
2020-07-20 21:51:37 +09:00
mgrojo a3360cc2aa Complete Spanish translation for v3.12
Complete translation and some improvements:
- Fix warnings raised by Linguist
- Avoid Title Case in Spanish

Issue #2124

Cherry-picked from v3.12.x branch.

# Conflicts:
#	src/translations/sqlb_es_ES.ts
2020-07-18 18:09:53 +02:00
Martin Kleusberg 1552b551fd Fix build on Windows
See issue #2335.
2020-07-18 15:01:12 +02:00
Martin Kleusberg 12ba01ffdb dbhub: Add link to webUI page of currently opened database
Add a toolbar to the Current Database tab of the Remote dock with one
button for now. This button opens the web page of the currently opened
database in the browser.

Also reduce the margins in the Remote dock a bit.
2020-07-18 13:28:29 +02:00
Martin Kleusberg 595d845a9f dbhub: Add some line breaks to the input dialog text for cloning 2020-07-18 10:57:08 +02:00
Martin Kleusberg fbfcdbe4bc dbhub: Improve default settings table views in Remote dock a bit
This makes the database name columns a bit wider by default. It also
reduces the width of the size columns, moves the commit id column to the
end of the remote table, and hides the file name column in local table.

See issue #2334.
2020-07-18 10:50:28 +02:00
Martin Kleusberg 5341112bbe dbhub: Fix sporadic crashes when selecting an identity
This fixes a sporadic crash when selecting an identity in the Remote
dock. It happened because selecting an identity removes the first dummy
entry in the drop down list of identities which for some reason emits
the signal which then calls the same function to update the root dir
again. Depending on the timing of the network requests this could lead
to some confusion when building the tree structure.

Also fix an off-by-one error when building the tree structure.

See issue #2333.
2020-07-18 10:38:17 +02:00
Martin Kleusberg 9fcba5a807 Clear currently opened database file name when closing database
This avoids possible confusions when getting the currently opened
database file. After closing a database this would return the previously
opened file when in fact no file is opened.

See issue #2334.
2020-07-18 10:08:17 +02:00
Martin Kleusberg 7842f2a1e1 dbhub: Clear branches combo box when closing database
See issue #2334.
2020-07-18 10:06:06 +02:00
Martin Kleusberg f81e4c2f6f dbhub: Better explanations for the Clone button
Thanks to @justinclift for pointing this out.
2020-07-18 10:03:21 +02:00
Martin Kleusberg f75a35877e Better error messages when CSV import fails due to an unexpected EOF
When the CSV import fails because of an unexpected end of file show a
better error message. When the file ends but we are still expected more
data to come, i.e. we are still in quote mode, no INSERT statement
failed. So showing the last SQLite error message will never show you a
proper error message. Instead tell the user that their settings might be
wrong or the file malformed.

See issue #2330.
2020-07-17 22:45:33 +02:00
Martin Kleusberg 0572b76fd7 dbhub: Simplify code 2020-07-17 21:41:55 +02:00
Martin Kleusberg e2783b68ad dbhub: Add button for cloning databases from a link
This adds a new button to clone databases using a direct link which is
useful when you know which database you want to clone and do not want to
browse through the list of all databases in the Remote dock. Generating
this link still needs to be added to the DBHub.io web UI.
2020-07-17 21:41:48 +02:00
Justin Clift 5d34f27f03 Merge pull request #2332 from lucydodo/translation-ko_KR
Update Korean translation
2020-07-17 23:29:00 +10:00
SeongTae jeong 39026bc25d Update Korean translation 2020-07-17 21:04:02 +09:00
Martin Kleusberg dd323faf2a dbhub: Add context menu action to delete local databases
Add a context menu action to the list of locally cloned databases which
allows you to delete the cloned databases.
2020-07-15 15:35:11 +02:00
Martin Kleusberg 10214b31e5 dbhub: Do no show error message when download was cancelled 2020-07-15 14:18:22 +02:00
Martin Kleusberg 2ea87e7e4a dbhub: Do not allow pushing in-memory databases
Because there is no local file on the disk to upload in-memory database
cannot be uploaded to the remote server. This commit makes sure the
button to upload databases is disabled for in-memory databases. It also
fixes a problem where some information on a previously opened database
would remain visible when opening an in-memory database.
2020-07-15 12:08:57 +02:00
Martin Kleusberg 780542e784 dbhub: Only provide commit id when pushing when the database is a clone
When pushing a database to the remote server only provide the commit id
when the database file is saved in the directory of cloned databases.
This makes sure we do not provide any random commit id when a database
with the same name as a cloned database is pushed.

See issue #1164.
2020-07-15 12:01:35 +02:00
Martin Kleusberg 062822d3b2 dbhub: More fixes to the branch handling 2020-07-15 12:01:35 +02:00
Martin Kleusberg 7fce5f98a8 dbhub: Better error handling 2020-07-15 12:01:23 +02:00
SeongTae Jeong bee8cfc67e Update Korean translation for ProxyDialog context (#2329) 2020-07-15 08:05:18 +10:00
Martin Kleusberg c05b92e9f9 dbhub: Highlight current commit in commit list
Highlight the last locally known commit id in the commit list in the
Remote dock. This should make it more obvious whether there are any
newer commits on the server.
2020-07-14 16:25:04 +02:00
Martin Kleusberg e285de6dc9 dbhub: Show a warning when trying to push unsaved changes
When clicking the Upload Database button when there are unsaved changes
show a warning to the user.
2020-07-14 15:41:34 +02:00
Martin Kleusberg 0942fad612 dbhub: Refresh commit list after pushing a new commit 2020-07-14 15:36:54 +02:00
Martin Kleusberg f6f2885588 dbhub: Use current locale for formatting all timestamps 2020-07-14 14:30:32 +02:00
Martin Kleusberg 4d62e4b82a dbhub: Make sure the directories for the remote code exist
When the directories for the cloned remote databases or for our meta
database do not yet exist create them.

See issue #2327.
2020-07-13 23:02:17 +02:00
Martin Kleusberg 5d89bb8991 dbhub: Show list of commits in Remote dock
When opening a clone of a remote database show a list of all branches,
releases, and tags in the Remote dock and show the commit list when
selecting one of them.
2020-07-13 23:02:17 +02:00
Karim ElDeeb ebd8977210 Save the install location to Windows Registry
See issue #2328.
2020-07-12 11:57:17 +02:00
mgrojo 651c19990d Fix colour assigned to plot being always black
After 7f60aaa1fd the check for validity no
longer works in this case, since background() always returns a valid colour
as used by default for the widget. Consequently, a comparison with the
default colour in the first column is used.
2020-07-11 23:55:28 +02:00
mgrojo 5f53d6301e Restore original default for having condition format in filter line
Filter lines in Table Browser had lost conditional format entries in their
context menu. This restores the original behaviour.

And the name of the member boolean is changed to avoid double negations.
2020-07-11 18:01:20 +02:00
Martin Kleusberg 635dba93c2 dbhub: Automatically switch to the correct identity when opening file
When opening a local clone of a remote database, make sure the current
identity is set to the identity used for cloning this file. This avoids
possible confusion and can simplify the workflow a bit.
2020-07-10 22:28:24 +02:00
Martin Kleusberg 8428c934a3 dbhub: Show some information on the currently opened database file
If the current database file is a clone of a remote database show some
information on it in the Remote dock. Even though this information is
already nice to have the new tab in the Remote dock is mainly added as a
place for future features. Also switch to the new tab automatically when
opening a remote database to show the user that this is a tracked
database.
2020-07-10 22:16:14 +02:00
Martin Kleusberg 22c87ff57a Fix build for older versions of Qt 2020-07-10 18:42:01 +02:00
Martin Kleusberg c776af9880 dbhub: Add view of all checked out databases
The Remote dock shows a list of all databases on dbhub.io. Double
clicking a database downloads and opens it. If the database has already
been downloaded before, the local file is simply opened. This only works
for a small number of databases: To open the database you want, you just
search for it and double click it. But for a larger number of databases
on dbhub.io this does not perform very well since finding a database can
be very difficult. Because of this this commit adds a new view which
shows all checked out databases, i.e. those databases which are already
downloaded. Double clicking one of these opens it without trying to
update it first.

In the future this might also provide a place to add extra options like
deleting local copies.
2020-07-10 18:19:43 +02:00
Martin Kleusberg 910ca3d2b9 dbhub: Fix port number mismatch when using port 443
This fixes checking out databases and pushing changes to them later.
Because for the first the port number was omitted and for the second it
was expected, looking up the last commit id in the database returned no
results which led to an 'Update required' error from the dbhub server.
2020-07-10 10:53:51 +02:00
Martin Kleusberg 6c2e38c269 dbhub: Improve support for different branches
This adds initial support for handling of different branches. Before
this we would always assume we were working with the master branch even
if in fact we were not. Now we respect the actual branch name and
support checkouts of different branches of the same database.
2020-07-10 10:52:08 +02:00
Martin Kleusberg d763672994 Fix tests after 0eb01fe000
This reorganises the dependencies between the different files to make
the tests build again.
2020-07-09 23:05:08 +02:00