.hgignore
author Denis Laxalde <denis.laxalde@logilab.fr>
Tue, 04 Apr 2017 16:28:50 +0200
branch3.25
changeset 12142 db2fc87348ab
parent 12122 92aef8c6e7c8
child 12371 923f9c9f56c5
permissions -rw-r--r--
[server] Make "sources_by_uri" and "sources_by_eid" properties of repository I.e. do not populate these dict as repo initialization (bootstrap step) but always use information from database. This is needed because when multiple instances of the same application run, if one instance adds a CWSource the other ones will not see it. In particular, when using a scheduler instance, new CWSource will be added by the web instance and not seen by the scheduler which is supposed to update them. We thus define properties for sources_by_eid and sources_by_uri instead attributes on repository instance. CWSource entities are thus retrieved from database every time these properties are accessed. We factor out initialization of the "source" instance (subclass of cubicweb.server.source.AbstractSource) in a _sources() method. Note that this method takes care of calling "init" method on the source as well as "set_schema" (previously done in repo.set_schema(), which now only touches system_source). Accordingly the "init_sources_from_database" method is dropped along with "add_source"/"remove_source" methods. In syncsources hook, we thus drop: * SourceAddedOp operation which called repo.add_source() so that the SourceAddedHook only cares about checking source configuration now; * SourceRemovedOp and SourceRenamedOp operations for the same reason; * SourceConfigUpdatedOp as updating the live config of source is meaningless once we rely on them being retrieved from the database; * SourceHostConfigUpdatedHook hook which is now useless without call to SourceConfigUpdatedOp; In 3.10 migration script, remove usage of sources_by_uri repo attribute which, unless I'm missing something, appears useless (at least now). In tests: * unittest_datafeed: remove test_update_url method since we dropped respective hook; * unittest_ldapsource: LDAPFeedUserDeletionTC.test_a_filter_inactivate() currently fails because it still relies on live config being updated, this will be fixed in the next changeset once all "live source" logic will be removed.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3116
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     1
^build$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     2
^dist$
10512
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10491
diff changeset
     3
\.egg-info$
99bdd4bddd77 Add tox.ini file
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 10491
diff changeset
     4
^.tox$
11272
53fbd5644bff Let hg Ignore py.test's .cache directory
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11029
diff changeset
     5
^.cache$
3116
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     6
\.pyc$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     7
\.pyo$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     8
\.bak$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     9
\.old$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    10
\~$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    11
\#.*?\#$
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    12
\.swp$
3990
14e14fef4460 hide en apidoc in .hgignore
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 3116
diff changeset
    13
^doc/book/en/apidoc$
7078
bad26a22fe29 [test] New Handling of database for test.
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 3990
diff changeset
    14
\.old$
11829
17078e20088f add debian buildpackage-generated files to hgignore
David Douard <david.douard@logilab.fr>
parents: 11475
diff changeset
    15
\.pybuild
12122
92aef8c6e7c8 [hg] Add generated slapd.conf to hgignore
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 11829
diff changeset
    16
cubicweb/server/test/data/slapd.conf
11829
17078e20088f add debian buildpackage-generated files to hgignore
David Douard <david.douard@logilab.fr>
parents: 11475
diff changeset
    17
debian/python-cubicweb
17078e20088f add debian buildpackage-generated files to hgignore
David Douard <david.douard@logilab.fr>
parents: 11475
diff changeset
    18
debian/*.log
17078e20088f add debian buildpackage-generated files to hgignore
David Douard <david.douard@logilab.fr>
parents: 11475
diff changeset
    19
debian/*.substvars
17078e20088f add debian buildpackage-generated files to hgignore
David Douard <david.douard@logilab.fr>
parents: 11475
diff changeset
    20
debian/cubicweb-doc
17078e20088f add debian buildpackage-generated files to hgignore
David Douard <david.douard@logilab.fr>
parents: 11475
diff changeset
    21
debian/cubicweb
17078e20088f add debian buildpackage-generated files to hgignore
David Douard <david.douard@logilab.fr>
parents: 11475
diff changeset
    22
debian/files
17078e20088f add debian buildpackage-generated files to hgignore
David Douard <david.douard@logilab.fr>
parents: 11475
diff changeset
    23
7078
bad26a22fe29 [test] New Handling of database for test.
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 3990
diff changeset
    24
syntax: regexp
11029
c9d12d1d3081 [testlib] put postgres test database in test/data/database directory
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 10524
diff changeset
    25
.*/data.*/database/.*
8252
3e769d21f67a [hg] ignore ldap database
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 7972
diff changeset
    26
.*/data/ldapdb/.*
10524
5392f100c0e3 Update hgignore
Rémi Cardona <remi.cardona@logilab.fr>
parents: 10512
diff changeset
    27
.*/data/uicache/
11460
5be729810695 [devtools] Handle i18ncube command for "cubes as packages"
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11272
diff changeset
    28
.*/data/libpython/cubicweb_.*/i18n/.*\.po
7972
99210c8b63b0 Add generated documentation to .hgignore.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 7078
diff changeset
    29
^doc/html/
99210c8b63b0 Add generated documentation to .hgignore.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 7078
diff changeset
    30
^doc/doctrees/
99210c8b63b0 Add generated documentation to .hgignore.
Pierre-Yves David <pierre-yves.david@logilab.fr>
parents: 7078
diff changeset
    31
^doc/book/en/devweb/js_api/
10491
c67bcee93248 [doc] Restructure the documentation
Christophe de Vienne <christophe@unlish.com>
parents: 10466
diff changeset
    32
^doc/_build
c67bcee93248 [doc] Restructure the documentation
Christophe de Vienne <christophe@unlish.com>
parents: 10466
diff changeset
    33
^doc/js_api/
11475
d2fcd81b7ca9 [tox] Add a dummy test-results.xml file in check-manifest and flake8 environments
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 11460
diff changeset
    34
test-results.xml