Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

ARIA-42-Generic-ctx-serialization-mechanism #68

Merged
merged 1 commit into from
Feb 9, 2017

Conversation

mxmrlv
Copy link
Contributor

@mxmrlv mxmrlv commented Feb 6, 2017

No description provided.

@mxmrlv mxmrlv changed the title Aria 42 generic ctx serialization mechanism ARIA-42-Generic-ctx-serialization-mechanism Feb 6, 2017
@asfgit asfgit force-pushed the ARIA-42-Generic-ctx-serialization-mechanism branch 7 times, most recently from 77165a4 to 4c5126e Compare February 8, 2017 11:36
def __init__(self, api_cls, api_kwargs=None, items=(), **kwargs):
def __init__(self,
api_cls,
items=(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add api_kwargs and move init, init_kwargs to ModelStorage (and rename init to session_initiator)


from sqlalchemy import create_engine
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix imports

path=os.path.join(base_dir, filename))
engine_kwargs = {}
else:
uri = 'sqlite:///:memory:'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove in memory option to tests only


deployment_id = create_simple_topology_two_nodes(model_storage)
model_storage = aria.application_model_storage(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

be consistent with initiator passing


def __init__(self, *args, **kwargs):
def __init__(self, *args, **kwargs): # pylint: disable=super-init-not-called
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add serialize function


def __init__(self, *args, **kwargs):
def __init__(self, *args, **kwargs): # pylint: disable=super-init-not-called
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@asfbot
Copy link

asfbot commented Feb 8, 2017

Can one of the admins verify this patch?

@@ -66,10 +67,10 @@ def __init__(self,
self.registered = {}
self._initiator = initiator
self._initiator_kwargs = initiator_kwargs or {}
self._api_kwargs = api_kwargs or {}
self._additional_api_kwargs = {}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add information about initiator interface

@@ -66,10 +67,10 @@ def __init__(self,
self.registered = {}
self._initiator = initiator
self._initiator_kwargs = initiator_kwargs or {}
self._api_kwargs = api_kwargs or {}
self._additional_api_kwargs = {}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unpicklable

@@ -65,3 +65,14 @@ def release_sqlite_storage(storage):
session.close()
for engine in set(mapi._engine for mapi in mapis):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont forget to revisit mock context

@asfgit asfgit force-pushed the ARIA-42-Generic-ctx-serialization-mechanism branch from 3436987 to 6311e45 Compare February 9, 2017 08:54
@asfgit asfgit force-pushed the ARIA-42-Generic-ctx-serialization-mechanism branch from 6311e45 to 1498ad3 Compare February 9, 2017 09:10
@asfgit asfgit merged commit 1498ad3 into master Feb 9, 2017
@asfgit asfgit deleted the ARIA-42-Generic-ctx-serialization-mechanism branch February 9, 2017 14:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants