Skip to content

Commit

Permalink
Release notes for 2.5.7 and API propagated.
Browse files Browse the repository at this point in the history
  • Loading branch information
grololo06 committed May 5, 2021
1 parent 0eb15cc commit 0c69804
Show file tree
Hide file tree
Showing 66 changed files with 1,989 additions and 1,072 deletions.
10 changes: 8 additions & 2 deletions appli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,18 +395,24 @@ 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.6"
ecotaxa_version = "2.5.7"


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


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

"""Changelog
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.
Bug #656: Subset (and other GET-based launched tasks) fails when behind a uWSGI server (NOT A CODE FIX).
Bug #652: Some actions in object details window make the selection behind silently empty.
Feature #608: In parallel with tasks, create back-end job entities and mix the two kinds for users.
2021-04-22 : V 2.5.6
Feature #607: Ensure that any information visible in the main classification page can be queried via the API.
Features #624, #631, #625: Export in Darwin Core Archive format a collection. API only.
Expand Down
12 changes: 7 additions & 5 deletions 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.8
The version of the OpenAPI document: 0.0.9
Generated by: https://openapi-generator.tech
"""

Expand All @@ -17,19 +17,20 @@
__version__ = "1.0.0"

# import apis into sdk package
from to_back.ecotaxa_cli_py.api.files_api import FilesApi
from to_back.ecotaxa_cli_py.api.taxonomy_tree_api import TaxonomyTreeApi
from to_back.ecotaxa_cli_py.api.wip_api import WIPApi
from to_back.ecotaxa_cli_py.api.acquisitions_api import AcquisitionsApi
from to_back.ecotaxa_cli_py.api.authentification_api import AuthentificationApi
from to_back.ecotaxa_cli_py.api.collections_api import CollectionsApi
from to_back.ecotaxa_cli_py.api.instrument_api import InstrumentApi
from to_back.ecotaxa_cli_py.api.jobs_api import JobsApi
from to_back.ecotaxa_cli_py.api.misc_api import MiscApi
from to_back.ecotaxa_cli_py.api.object_api import ObjectApi
from to_back.ecotaxa_cli_py.api.objects_api import ObjectsApi
from to_back.ecotaxa_cli_py.api.processes_api import ProcessesApi
from to_back.ecotaxa_cli_py.api.projects_api import ProjectsApi
from to_back.ecotaxa_cli_py.api.samples_api import SamplesApi
from to_back.ecotaxa_cli_py.api.task_api import TaskApi
from to_back.ecotaxa_cli_py.api.users_api import UsersApi

# import ApiClient
Expand All @@ -42,6 +43,7 @@
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_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
Expand All @@ -53,9 +55,9 @@
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_prep_req import ImportPrepReq
from to_back.ecotaxa_cli_py.models.import_prep_rsp import ImportPrepRsp
from to_back.ecotaxa_cli_py.models.import_real_req import ImportRealReq
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.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 Down
3 changes: 2 additions & 1 deletion to_back/ecotaxa_cli_py/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
# flake8: noqa

# import apis into api package
from to_back.ecotaxa_cli_py.api.files_api import FilesApi
from to_back.ecotaxa_cli_py.api.taxonomy_tree_api import TaxonomyTreeApi
from to_back.ecotaxa_cli_py.api.wip_api import WIPApi
from to_back.ecotaxa_cli_py.api.acquisitions_api import AcquisitionsApi
from to_back.ecotaxa_cli_py.api.authentification_api import AuthentificationApi
from to_back.ecotaxa_cli_py.api.collections_api import CollectionsApi
from to_back.ecotaxa_cli_py.api.instrument_api import InstrumentApi
from to_back.ecotaxa_cli_py.api.jobs_api import JobsApi
from to_back.ecotaxa_cli_py.api.misc_api import MiscApi
from to_back.ecotaxa_cli_py.api.object_api import ObjectApi
from to_back.ecotaxa_cli_py.api.objects_api import ObjectsApi
from to_back.ecotaxa_cli_py.api.processes_api import ProcessesApi
from to_back.ecotaxa_cli_py.api.projects_api import ProjectsApi
from to_back.ecotaxa_cli_py.api.samples_api import SamplesApi
from to_back.ecotaxa_cli_py.api.task_api import TaskApi
from to_back.ecotaxa_cli_py.api.users_api import UsersApi
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.8
The version of the OpenAPI document: 0.0.9
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.8
The version of the OpenAPI document: 0.0.9
Generated by: https://openapi-generator.tech
"""

Expand Down
120 changes: 117 additions & 3 deletions 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.8
The version of the OpenAPI document: 0.0.9
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 collection_by_short_title_collections_by_short_title_get(self, q, **kwargs): # noqa: E501
"""Collection By Short Title # noqa: E501
Return the single collection with this title. For published datasets. !!! DO NOT MODIFY BEHAVIOR !!! # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.collection_by_short_title_collections_by_short_title_get(q, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str q: (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: CollectionModel
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
return self.collection_by_short_title_collections_by_short_title_get_with_http_info(q, **kwargs) # noqa: E501

def collection_by_short_title_collections_by_short_title_get_with_http_info(self, q, **kwargs): # noqa: E501
"""Collection By Short Title # noqa: E501
Return the single collection with this title. For published datasets. !!! DO NOT MODIFY BEHAVIOR !!! # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.collection_by_short_title_collections_by_short_title_get_with_http_info(q, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param str q: (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(CollectionModel, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""

local_var_params = locals()

all_params = [
'q'
]
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 collection_by_short_title_collections_by_short_title_get" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'q' is set
if self.api_client.client_side_validation and ('q' not in local_var_params or # noqa: E501
local_var_params['q'] is None): # noqa: E501
raise ApiValueError("Missing the required parameter `q` when calling `collection_by_short_title_collections_by_short_title_get`") # noqa: E501

collection_formats = {}

path_params = {}

query_params = []
if 'q' in local_var_params and local_var_params['q'] is not None: # noqa: E501
query_params.append(('q', local_var_params['q'])) # 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 = [] # noqa: E501

return self.api_client.call_api(
'/collections/by_short_title', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CollectionModel', # 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 collection_by_title_collections_by_title_get(self, q, **kwargs): # noqa: E501
"""Collection By Title # noqa: E501
Expand Down Expand Up @@ -421,7 +535,7 @@ def emodnet_format_export_collections_collection_id_export_emodnet_get_with_http
def erase_collection_collections_collection_id_delete(self, collection_id, **kwargs): # noqa: E501
"""Erase Collection # noqa: E501
Delete the collection, i.e. the precious fields, as the projects are just unliked from the collection. # noqa: E501
Delete the collection, i.e. the precious fields, as the projects are just linked-at from the collection. # 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_collection_collections_collection_id_delete(collection_id, async_req=True)
Expand All @@ -446,7 +560,7 @@ def erase_collection_collections_collection_id_delete(self, collection_id, **kwa
def erase_collection_collections_collection_id_delete_with_http_info(self, collection_id, **kwargs): # noqa: E501
"""Erase Collection # noqa: E501
Delete the collection, i.e. the precious fields, as the projects are just unliked from the collection. # noqa: E501
Delete the collection, i.e. the precious fields, as the projects are just linked-at from the collection. # 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_collection_collections_collection_id_delete_with_http_info(collection_id, async_req=True)
Expand Down
Loading

0 comments on commit 0c69804

Please sign in to comment.