Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mentat-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
mentat-test
Commits
c72e0f9c
Commit
c72e0f9c
authored
4 years ago
by
Jan Mach
Browse files
Options
Downloads
Patches
Plain Diff
Changed default Hawat config values for HAWAT_LIMIT_AODS and HAWAT_SEARCH_QUERY_QUOTA.
parent
afde506f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
conf/mentat-hawat.py.conf
+6
-0
6 additions, 0 deletions
conf/mentat-hawat.py.conf
lib/hawat/base.py
+0
-1
0 additions, 1 deletion
lib/hawat/base.py
lib/hawat/config.py
+2
-2
2 additions, 2 deletions
lib/hawat/config.py
with
8 additions
and
3 deletions
conf/mentat-hawat.py.conf
+
6
−
0
View file @
c72e0f9c
...
@@ -25,6 +25,12 @@ BABEL_DEFAULT_TIMEZONE = 'UTC'
...
@@ -25,6 +25,12 @@ BABEL_DEFAULT_TIMEZONE = 'UTC'
#BABEL_DEFAULT_LOCALE = 'cs'
#BABEL_DEFAULT_LOCALE = 'cs'
#BABEL_DEFAULT_TIMEZONE = 'Europe/Prague'
#BABEL_DEFAULT_TIMEZONE = 'Europe/Prague'
# Limit for number of objects for which to automatically fetch additional data services.
HAWAT_LIMIT_AODS
=
20
# Event database search query quota.
HAWAT_SEARCH_QUERY_QUOTA
=
7
# List of enabled application blueprints.
# List of enabled application blueprints.
ENABLED_BLUEPRINTS
= [
ENABLED_BLUEPRINTS
= [
'vial.blueprints.auth'
,
'vial.blueprints.auth'
,
...
...
This diff is collapsed.
Click to expand it.
lib/hawat/base.py
+
0
−
1
View file @
c72e0f9c
...
@@ -298,7 +298,6 @@ class PsycopgMixin:
...
@@ -298,7 +298,6 @@ class PsycopgMixin:
backend through SQLAlchemy library.
backend through SQLAlchemy library.
"""
"""
SEARCH_QUERY_QUOTA_CHECK
=
True
SEARCH_QUERY_QUOTA_CHECK
=
True
SEARCH_QUERY_QUOTA
=
5
def
fetch
(
self
,
item_id
):
# pylint: disable=locally-disabled,no-self-use
def
fetch
(
self
,
item_id
):
# pylint: disable=locally-disabled,no-self-use
"""
"""
...
...
This diff is collapsed.
Click to expand it.
lib/hawat/config.py
+
2
−
2
View file @
c72e0f9c
...
@@ -179,10 +179,10 @@ class Config(vial.config.Config): # pylint: disable=locally-disabled,too-few-pu
...
@@ -179,10 +179,10 @@ class Config(vial.config.Config): # pylint: disable=locally-disabled,too-few-pu
HAWAT_CHART_TIMELINE_MAXSTEPS
=
200
HAWAT_CHART_TIMELINE_MAXSTEPS
=
200
"""
Maximal number of steps (bars) displayed in timeline chart.
"""
"""
Maximal number of steps (bars) displayed in timeline chart.
"""
HAWAT_LIMIT_AODS
=
1
0
HAWAT_LIMIT_AODS
=
2
0
"""
Limit for number of objects for which to automatically fetch additional data services.
"""
"""
Limit for number of objects for which to automatically fetch additional data services.
"""
HAWAT_SEARCH_QUERY_QUOTA
=
3
HAWAT_SEARCH_QUERY_QUOTA
=
7
"""
Event search query quota per each user.
"""
"""
Event search query quota per each user.
"""
SQLALCHEMY_SETUP_ARGS
=
{
SQLALCHEMY_SETUP_ARGS
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment