Skip to content

Commit

Permalink
Release notes for 2.5.8 and API propagated.
Browse files Browse the repository at this point in the history
  • Loading branch information
grololo06 committed May 26, 2021
1 parent 2d9f696 commit afe6631
Show file tree
Hide file tree
Showing 69 changed files with 1,482 additions and 84 deletions.
12 changes: 10 additions & 2 deletions appli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,18 +395,26 @@ def JinjaGetManagerList(sujet=""):
return " ".join(["<li><a href='mailto:{1}{0}'>{2} ({1})</a></li> ".format(sujet, *r) for r in LstUsers])


ecotaxa_version = "2.5.7"
ecotaxa_version = "2.5.8"


def JinjaGetEcotaxaVersionText():
return ecotaxa_version + " 2021-05-05"
return ecotaxa_version + " 2021-05-26"


app.jinja_env.filters['datetime'] = JinjaFormatDateTime
app.jinja_env.filters['nl2br'] = JinjaNl2BR
app.jinja_env.globals.update(GetManagerList=JinjaGetManagerList, GetEcotaxaVersionText=JinjaGetEcotaxaVersionText)

"""Changelog
2021-05-26 : V 2.5.8
Feature #360: Allow to subset by sampling various entities, not only categories.
Bug #595: Project managers should be able to clone their own projects, even if they are not Project Creator.
Bug #543: A corrupted PNG could make an import operation fail with a cryptic error.
Feature #590: Move file navigation to back-end.
Features #673, #672: Add/adapt API entry points for new front-end. @See #382
Bug #614: Api could not be used interactively from /api/docs generated page.
Bug #657: A TIFF file could crash the import.
2021-05-05 : V 2.5.7
Feature #660: Add a column to Collection and expose a search API entry point using it.
Bug #659: In a mirrored DB setup, project creation is sometime not visible immediately.
Expand Down
12 changes: 11 additions & 1 deletion to_back/ecotaxa_cli_py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.9
The version of the OpenAPI document: 0.0.13
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -43,21 +43,29 @@
from to_back.ecotaxa_cli_py.exceptions import ApiException
# import models into sdk package
from to_back.ecotaxa_cli_py.models.acquisition_model import AcquisitionModel
from to_back.ecotaxa_cli_py.models.body_export_object_set_object_set_export_post import BodyExportObjectSetObjectSetExportPost
from to_back.ecotaxa_cli_py.models.body_put_user_file_my_files_post import BodyPutUserFileMyFilesPost
from to_back.ecotaxa_cli_py.models.bulk_update_req import BulkUpdateReq
from to_back.ecotaxa_cli_py.models.classify_req import ClassifyReq
from to_back.ecotaxa_cli_py.models.collection_model import CollectionModel
from to_back.ecotaxa_cli_py.models.constants import Constants
from to_back.ecotaxa_cli_py.models.create_collection_req import CreateCollectionReq
from to_back.ecotaxa_cli_py.models.create_project_req import CreateProjectReq
from to_back.ecotaxa_cli_py.models.directory_entry_model import DirectoryEntryModel
from to_back.ecotaxa_cli_py.models.directory_model import DirectoryModel
from to_back.ecotaxa_cli_py.models.emo_dnet_export_rsp import EMODnetExportRsp
from to_back.ecotaxa_cli_py.models.export_req import ExportReq
from to_back.ecotaxa_cli_py.models.export_rsp import ExportRsp
from to_back.ecotaxa_cli_py.models.export_type_enum import ExportTypeEnum
from to_back.ecotaxa_cli_py.models.group_definitions import GroupDefinitions
from to_back.ecotaxa_cli_py.models.http_validation_error import HTTPValidationError
from to_back.ecotaxa_cli_py.models.historical_classification import HistoricalClassification
from to_back.ecotaxa_cli_py.models.historical_last_classif import HistoricalLastClassif
from to_back.ecotaxa_cli_py.models.image_model import ImageModel
from to_back.ecotaxa_cli_py.models.import_req import ImportReq
from to_back.ecotaxa_cli_py.models.import_rsp import ImportRsp
from to_back.ecotaxa_cli_py.models.job_model import JobModel
from to_back.ecotaxa_cli_py.models.limit_methods import LimitMethods
from to_back.ecotaxa_cli_py.models.login_req import LoginReq
from to_back.ecotaxa_cli_py.models.merge_rsp import MergeRsp
from to_back.ecotaxa_cli_py.models.minimal_user_bo import MinimalUserBO
Expand All @@ -73,13 +81,15 @@
from to_back.ecotaxa_cli_py.models.project_taxo_stats_model import ProjectTaxoStatsModel
from to_back.ecotaxa_cli_py.models.project_user_stats_model import ProjectUserStatsModel
from to_back.ecotaxa_cli_py.models.sample_model import SampleModel
from to_back.ecotaxa_cli_py.models.sample_taxo_stats_model import SampleTaxoStatsModel
from to_back.ecotaxa_cli_py.models.simple_import_req import SimpleImportReq
from to_back.ecotaxa_cli_py.models.simple_import_rsp import SimpleImportRsp
from to_back.ecotaxa_cli_py.models.subset_req import SubsetReq
from to_back.ecotaxa_cli_py.models.subset_rsp import SubsetRsp
from to_back.ecotaxa_cli_py.models.taxa_search_rsp import TaxaSearchRsp
from to_back.ecotaxa_cli_py.models.taxon_model import TaxonModel
from to_back.ecotaxa_cli_py.models.taxonomy_tree_status import TaxonomyTreeStatus
from to_back.ecotaxa_cli_py.models.user_activity import UserActivity
from to_back.ecotaxa_cli_py.models.user_model import UserModel
from to_back.ecotaxa_cli_py.models.user_model_with_rights import UserModelWithRights
from to_back.ecotaxa_cli_py.models.validation_error import ValidationError
Expand Down
2 changes: 1 addition & 1 deletion to_back/ecotaxa_cli_py/api/acquisitions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.9
The version of the OpenAPI document: 0.0.13
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion to_back/ecotaxa_cli_py/api/authentification_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.9
The version of the OpenAPI document: 0.0.13
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion to_back/ecotaxa_cli_py/api/collections_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.9
The version of the OpenAPI document: 0.0.13
Generated by: https://openapi-generator.tech
"""

Expand Down
116 changes: 115 additions & 1 deletion to_back/ecotaxa_cli_py/api/files_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.9
The version of the OpenAPI document: 0.0.13
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -36,6 +36,120 @@ def __init__(self, api_client=None):
api_client = ApiClient()
self.api_client = api_client

def list_common_files_common_files_get(self, path, **kwargs): # noqa: E501
"""List Common Files # noqa: E501
List the common files which are usable for some file-related operations e.g. import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_common_files_common_files_get(path, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str path: (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: DirectoryModel
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.list_common_files_common_files_get_with_http_info(path, **kwargs) # noqa: E501

def list_common_files_common_files_get_with_http_info(self, path, **kwargs): # noqa: E501
"""List Common Files # noqa: E501
List the common files which are usable for some file-related operations e.g. import. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_common_files_common_files_get_with_http_info(path, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str path: (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(DirectoryModel, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""

local_var_params = locals()

all_params = [
'path'
]
all_params.extend(
[
'async_req',
'_return_http_data_only',
'_preload_content',
'_request_timeout'
]
)

for key, val in six.iteritems(local_var_params['kwargs']):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
" to method list_common_files_common_files_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'path' is set
if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501
local_var_params['path'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `path` when calling `list_common_files_common_files_get`") # noqa: E501

collection_formats = {}

path_params = {}

query_params = []
if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501
query_params.append(('path', local_var_params['path'])) # noqa: E501

header_params = {}

form_params = []
local_var_files = {}

body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501

# Authentication setting
auth_settings = ['HTTPBearer'] # noqa: E501

return self.api_client.call_api(
'/common_files/', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='DirectoryModel', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)

def put_user_file_my_files_post(self, file, **kwargs): # noqa: E501
"""Put User File # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion to_back/ecotaxa_cli_py/api/instrument_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.9
The version of the OpenAPI document: 0.0.13
Generated by: https://openapi-generator.tech
"""

Expand Down
6 changes: 3 additions & 3 deletions to_back/ecotaxa_cli_py/api/jobs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.9
The version of the OpenAPI document: 0.0.13
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -39,7 +39,7 @@ def __init__(self, api_client=None):
def erase_job_jobs_job_id_delete(self, job_id, **kwargs): # noqa: E501
"""Erase Job # noqa: E501
Delete the task, from DB and with associated storage. # noqa: E501
Delete the job, from DB and with associated storage. If the job is running then kill it. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.erase_job_jobs_job_id_delete(job_id, async_req=True)
Expand All @@ -64,7 +64,7 @@ def erase_job_jobs_job_id_delete(self, job_id, **kwargs): # noqa: E501
def erase_job_jobs_job_id_delete_with_http_info(self, job_id, **kwargs): # noqa: E501
"""Erase Job # noqa: E501
Delete the task, from DB and with associated storage. # noqa: E501
Delete the job, from DB and with associated storage. If the job is running then kill it. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.erase_job_jobs_job_id_delete_with_http_info(job_id, async_req=True)
Expand Down
2 changes: 1 addition & 1 deletion to_back/ecotaxa_cli_py/api/misc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.9
The version of the OpenAPI document: 0.0.13
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion to_back/ecotaxa_cli_py/api/object_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.9
The version of the OpenAPI document: 0.0.13
Generated by: https://openapi-generator.tech
"""

Expand Down
Loading

0 comments on commit afe6631

Please sign in to comment.