- 28 Sep, 2016 1 commit
-
-
Sylvain Thénault authored
Don't drop constraints and indexes for tables that are ignored by the metadata generator given to the store. One may now easily disable insertion of e.g. created_by / owned_by by removing them from the MetadataGenerator.META_RELATIONS set, in which case indexes for associated table won't be removed by the massive store.
-
- 17 Oct, 2016 1 commit
-
-
Adrien Di Mascio authored
This should be done on the instance rather than on the class
-
- 28 Sep, 2016 1 commit
-
-
Sylvain Thénault authored
The basic idea is to keep the primary constraint on entities.eid since it's heavily used in metadata insertions. Other option would have been to drop / recreate but its very costly on big database, and the index is used for insertion into the entities table itself, so it's not worth droping it at a first glance. Also, keeping it avoids to systematically drop all constraints which depends on it. We may thus now lazily drop constraints, only on insertion of some etype/rtype for the related table. Related to #15538359
-
- 27 Sep, 2016 1 commit
-
-
Sylvain Thénault authored
They should not be removed during store's init, because we may want to query the database with its index between store creation and call to prepare_insert* (e.g. to build the extid2eid map). Along the way: * rename drop_metadata_constraints into drop_metadata_indexes, because that's what it does * rework a bit impacted tests Closes #15538359
-
- 17 Oct, 2016 1 commit
-
-
Sylvain Thénault authored
It should be now only used in maintenance queries in checkintegrity. Those are not worth maintaining it. Closes #15538317
-
- 06 Oct, 2016 1 commit
-
-
Sylvain Thénault authored
It was only used by the cwxmlparser which has been deleted. This is too complex for litle benefit, we don't want to maintain that in cubicweb.
-
- 05 Oct, 2016 1 commit
-
-
Sylvain Thénault authored
This was not necessary anymore with promoted usage of the new data import API. Turn repository's _type_extid_cache to _type_cache with only the entity's type as key. This introduces an backward incompatible change: entity_metas dict doesn't contains anymore the extid key, but it doesn't seem used at all anywhere, so this sounds acceptable. Closes #15538317
-
- 30 Sep, 2016 1 commit
-
-
Sylvain Thénault authored
It not used anymore thanks to previous patches. Closes #15538288
-
- 29 Sep, 2016 1 commit
-
-
Sylvain Thénault authored
Simply check if entities have a cw_source, and link it to the system source when not found. Related to #15538288
-
- 17 Oct, 2016 1 commit
-
-
Sylvain Thénault authored
Without this, test were randomly failing within tox due to different order of solutions.
-
- 06 Oct, 2016 1 commit
-
-
Sylvain Thénault authored
This was necessary in the "true multi-sources" time, it's not anymore, while maintaining this index is costly. Related to #15538317
-
- 11 Oct, 2016 1 commit
-
-
Sylvain Thénault authored
-
- 06 Oct, 2016 1 commit
-
-
Sylvain Thénault authored
Having TestServerConfiguration and alike in the test module namespace causes pytest discovery errors, because it thinks it's a test class.
-
- 30 Sep, 2016 1 commit
-
-
Sylvain Thénault authored
* update some copyright * drop most __docformat__ declaration * fix some flake8 warnings / errors
-
- 05 Oct, 2016 1 commit
-
-
Sylvain Thénault authored
-
- 01 Oct, 2016 1 commit
-
-
Sylvain Thénault authored
The latter is deprecated in favor of the former which has been introduced on cnx to replace it.
-
- 06 Oct, 2016 1 commit
-
-
Sylvain Thénault authored
It shouldn't rely anymore on cnx.entity_metas which is itself deprecated, and the cw_metainformation API is similarly not needed anymore, access directly to cwuri / cw_source if needed. Related to #15538288
-
- 30 Sep, 2016 3 commits
-
-
Sylvain Thénault authored
We don't want to handle anymore the entities.asource column so we shouldn't use those anymore. Also rename repository's _type_source_cache into _type_extid_cache as this is what it's containing now. Do similar renaming to the system source API. Related to #15538288
-
Sylvain Thénault authored
We should not need that. It has been introduced to handle things we should not do and probably don't do anymore (e.g. attempting to grasp recursive import of several sites). Related to #15538288.
-
Sylvain Thénault authored
Related to #15538288
-
- 29 Sep, 2016 1 commit
-
-
Sylvain Thénault authored
both are relying on the 'entities.source' column which has been dropped in 3.19. They have been written with the old ldapsource in mind, which has been dropped at that time.
-
- 30 Sep, 2016 1 commit
-
-
Sylvain Thénault authored
This behaviour was ok when we had "true" multi-sources but its rather painful with datafeed sources. Also, it makes absolute_url() costlier than what it should. Besides, it relies on cw_metainformation()['source'] that is pending for removal. Instead, add a link to the original object in the metadata view (the one that displays eid and source at the bottom right corner of the primary view). Related to #15538288.
-
- 29 Sep, 2016 2 commits
-
-
Sylvain Thénault authored
This should be handled by specific parser to avoid using "entities.asource". Reimplement it in the ldap parser. Related to #15538288
-
Sylvain Thénault authored
This was clumsy and could be handled using exturi / cwsource, as the ldap source now does.
-
- 30 Sep, 2016 2 commits
-
-
Sylvain Thénault authored
This will break cwxmlparser based sources. They should be rewritten using a specific parser, based on xml representation or on rqlio. This is harsh but allows a so big cleanup of the code base. Furthermore, it's necessary for asource/extid handling in the entities table which is costly for most app that don't care at all about that... In this cset, delete: * all extid2eid methods * repo._extid_cache handling * [before/after]_entity_insertion source callback * the cwxmlparser and update related tests, notably unittest_datafeed where 'repull' testing has been removed, since it's now handled by the dataimport API and should not be retested there. Related to #15538288 Closes #15538383
-
Sylvain Thénault authored
We may used cwuri for the same purpose, and do one more step towards deletion of entities.extid column. Related to #15538288
-
- 26 Oct, 2016 1 commit
-
-
Denis Laxalde authored
-
- 03 Nov, 2016 1 commit
-
-
Denis Laxalde authored
Apparently we are using some constants that got dropped/moved in ldap3 >= 2.0.0 (which came out last week). So stay with version 1.4 until this gets sorted out.
-
- 02 Nov, 2016 1 commit
-
-
David Douard authored
in Python, 2.7, setuptools.command.develop.develop is an old style class, thus it cannot be called with super.
-
- 26 Oct, 2016 1 commit
-
-
Denis Laxalde authored
The package may not be available in all systems (e.g. no Debian package exist at the moment), and we should not crash with ImportError when importing testlib from client code. Follow up on a6dc650bc230 where the dependency was introduced.
-
- 28 Sep, 2016 1 commit
-
-
Sylvain Thénault authored
this was used in the pre-datafeed area, it's not worth it anymore. Its only valid usage was in authentication to detect if the source was supporting CWUser, hence we now call it systematically and catch NotImplementedError.
-
- 30 Sep, 2016 2 commits
-
-
Sylvain Thénault authored
This is useful to do some import tests where you only want to test steps prior to the database insertion, as well as "dry-run" commands. Use it as a documenting base class.
-
Sylvain Thénault authored
with previous implementation, the original exception wasn't visible in python 2.
-
- 24 Oct, 2016 6 commits
-
-
Denis Laxalde authored
These are already site-packages along with cubicweb package.
-
Denis Laxalde authored
The bare RuntimeError that gets emitted upon timeout does not help much to diagnose the problem. Let's see if we can get more information from stdout by not dropping it.
-
Denis Laxalde authored
So that stop() method always gets called. Also ensure temporary directory created on __init__ gets deleted as well upon exit.
-
Denis Laxalde authored
logilab-common's with_tempdir decorator, which is considered harmful (see https://www.logilab.org/ticket/8267966). Rely on backports.tempfile to provide TemporaryDirectory on Python 2. Re-export it in testlib module for convenience.
-
Denis Laxalde authored
-
Denis Laxalde authored
-
- 16 Aug, 2016 1 commit
-
-
Denis Laxalde authored
The RelationField appends data to "pending_others" key while processing its posted information, but this key may already have been removed by the edit controller. So remove the key from session data only when all "others" relations have been processed using a while loop. A test case would be nice, but I could not build one easily unfortunately. Closes #4354551.
-