Ticket #4111 task closed fixed

Opened 4 years ago

Last modified 17 months ago

Remove deprecated twisted.enterprise.util

Reported by: thijs Owned by: itamar
Priority: normal Milestone:
Component: core Keywords:
Cc: itamarst, thijs, itamar Branch: branches/enterprise-util-4111-2
Author: thijs, itamarst Launchpad Bug:

Description

trunk/twisted/enterprise/util.py is deprecated, let's remove it.

Change History

1

  Changed 3 years ago by thijs

  • status changed from new to assigned
  • owner changed from glyph to thijs

#4108, #4109, #4110 all depend on this module so this should become a master ticket.

2

  Changed 3 years ago by thijs

  • branch set to branches/enterprise-util-4111
  • branch_author set to thijs

(In [28082]) Branching to 'enterprise-util-4111'

3

  Changed 3 years ago by thijs

(In [28086]) Remove deprecated t.enterprise.util and related modules, refs #4111

4

  Changed 3 years ago by thijs

  • keywords review added
  • owner thijs deleted
  • status changed from assigned to new

5

  Changed 3 years ago by khorn

  • owner set to khorn

6

  Changed 3 years ago by khorn

  • owner changed from khorn to thijs
  • keywords review removed

Looks good. Please merge.

7

  Changed 3 years ago by exarkun

Missing a news file.

8

  Changed 3 years ago by thijs

(In [28114]) Remove references to t.enterprise.row, refs #4111

9

  Changed 3 years ago by thijs

(In [28115]) Remove row example, refs #4111

10

  Changed 3 years ago by thijs

  • owner thijs deleted
  • keywords review added

I removed some more row stuff. twisted/persisted/journal/rowjournal.py refers to t.e.row but doesnt import it. what to do with this module, deprecate it and remove the reference to t.e.row?

11

follow-up: ↓ 16   Changed 3 years ago by exarkun

  • keywords review removed
  • owner set to thijs
  1. Please delete all of test_enterprise in test_import.py. These tests are almost all obsolete and we should be moving towards eliminating them completely.
  2. About rowjournal: yes, please deprecate it and remove the reference. sigh. Bug itamar about what he thinks about deprecating the rest of the journal package, too.

Thanks

12

  Changed 3 years ago by thijs

  • cc itamarst added
  • status changed from new to assigned

13

  Changed 3 years ago by thijs

(In [28433]) Delete obsolete test_enterprise tests, refs #4111

14

  Changed 3 years ago by thijs

(In [28437]) Deprecate twisted.persisted.journal.rowjournal. Also apply some coding standards. refs #4111

15

  Changed 3 years ago by thijs

  • status changed from assigned to new
  • keywords review added
  • owner thijs deleted

I deprecated the rowjournal module, but not sure if I did it correctly, but based on this session it seems I have:

>>> import twisted.persisted.journal.rowjournal
__main__:1: DeprecationWarning: twisted.persisted.journal.rowjournal is deprecated as of Twisted 10.1
>>> from twisted.persisted.journal.rowjournal import INSERT
__main__:1: DeprecationWarning: twisted.persisted.journal.rowjournal is deprecated as of Twisted 10.1
>>> from twisted.persisted.journal.rowjournal import RowJournal
__main__:1: DeprecationWarning: twisted.persisted.journal.rowjournal is deprecated as of Twisted 10.1

The CompatibilityPolicy doesn't describe how to deprecate a module or class, as far as I can see, so if someone could add a proper description that to page, great.

Up for review.

16

in reply to: ↑ 11   Changed 3 years ago by thijs

  • cc itamar added

Replying to exarkun:

Bug itamar about what he thinks about deprecating the rest of the journal package, too.

I've opened #4298 for this and assigned it to itamar.

17

  Changed 3 years ago by TimAllen

  • owner set to TimAllen

18

  Changed 3 years ago by TimAllen

  • owner changed from TimAllen to thijs
  • keywords review removed

I've reviewed r28437 of the branch.

  1. I note that t.e.adbapi is no longer being imported from twisted/test/test_import.py even though it isn't deprecated - is that deliberate?
  2. As exarkun noted in comment:7, it's still missing a news file (see the relevant section of the ReviewProcess page).
  3. The CompatibilityPolicy page says "Like all changes in Twisted, deprecations must be unit tested." There should be a deprecation test added to the RowJournal tests.

19

  Changed 2 years ago by <automation>

  • owner thijs deleted

20

  Changed 18 months ago by itamar

  • owner set to itamar

21

  Changed 18 months ago by itamarst

  • branch changed from branches/enterprise-util-4111 to branches/enterprise-util-4111-2
  • branch_author changed from thijs to thijs, itamarst

(In [33325]) Branching to 'enterprise-util-4111-2'

22

  Changed 18 months ago by itamar

  1. test_import is bogus, and apparently there's a ticket to get rid of it, so I'm not going to bother readding adbapi.
  2. Fixed.
  3. I just deleted rowjournal. Having a deprecation warning for a module that is completely broken and unusable because we deleted its dependencies doesn't make sense.

I'll submit for review after final test run.

23

  Changed 18 months ago by itamar

  • owner itamar deleted
  • keywords review added

OK, ready for review (in case you're a new reviewer, note that the branch also covers ticket #4109).

 http://buildbot.twistedmatrix.com/boxes-supported?branch=/branches/enterprise-util-4111-2

24

  Changed 17 months ago by exarkun

  • keywords review removed
  • owner set to itamar

In addition to #4109, this seems to cover #4108 and #4110 as well, right?

The news fragment for all affected tickets should be in .removal files.

The twisted.enterprise.adbapi.safe deprecation is perhaps somewhat related to this change. We could maybe get rid of it now as well.

Please merge once safe is gone, or at least file a new ticket for removing it.

25

  Changed 17 months ago by itamarst

  • status changed from new to closed
  • resolution set to fixed

(In [33412]) Merge enterise-util-4111-2.

Author: thijs, itamar Review: khorn, exarkun, TimAllen Fixes: #4108, #4109, #4110, #4111

Remove deprecated code from the enterprise package, along with relevant documentation and examples.

Note: See TracTickets for help on using tickets.