-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Trust project option #5094
Conversation
Note: this option will greatly speed up project loading either on Desktop or Server Context for big datasets accessed via views, materialized views or any data format not storing such metadata. Downsides are that if datasource has effectively changed, Project will need to be updated |
Shouldn't this be set in the project properties rather than as a global option? |
Good point... @haubourg do you agree? |
+1 ! |
src/core/qgsproject.h
Outdated
* | ||
* \since QGIS 3.0 | ||
*/ | ||
void setTrust( bool trust ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setTrustLayerMetadata/trustLayerMetadata would be more descriptive names here
src/ui/qgsoptionsbase.ui
Outdated
@@ -2005,7 +1951,7 @@ | |||
<item> | |||
<widget class="QgsCollapsibleGroupBox" name="mSimplifyDrawingGroupBox"> | |||
<property name="title"> | |||
<string>Enable feature si&mplification by default for newly added layers</string> | |||
<string>Enable fea&ture simplification by default for newly added layers</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these shortcut changes deliberate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely not, my qt-designer made something strange here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As soon as I open/save this file with my Qt-Designer, shortcuts are changed... Anyway, as trustProject is not a global option anymore, I reverted changes on qgsoptionsbase.ui.
999a710
to
4933ea9
Compare
I'll merge this PR tomorrow if I've no more comments in the meantime. |
In project properties, the option would may be better placed in the "Data Sources" tab. |
Beyond that, I couldn't find any problem in editing / updating extent workflow. |
Done |
In QGIS3, the user can add an option to force to trust the project about extent and primarykey in PostgreSQL/Postgis layers qgis/QGIS#5094
Description
This PR adds the trustProject option.
When this option is activated:
This option is convenient for the server in order to avoid spending to much time in getCapabilities when we know that the underlying data do not change.
Some tests has been added to confirm the behavior on PostgreSQL views and materialized views.
Checklist
fixes #11111
in the commit message next to the description[FEATURE]
in the commit message[needs-docs]
in the commit message and containt sufficient information in the commit message to be documentedscripts/prepare-commit.sh
script before each commit