mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	refactor: Remove "subject" from stream_topic.py.
This commit is contained in:
		@@ -37,11 +37,6 @@ FILES_WITH_LEGACY_SUBJECT = {
 | 
				
			|||||||
    # These are tied more to our API than our DB model.
 | 
					    # These are tied more to our API than our DB model.
 | 
				
			||||||
    'zerver/lib/api_test_helpers.py',
 | 
					    'zerver/lib/api_test_helpers.py',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # TRY TO FIX THESE! If you can't fix them, try to
 | 
					 | 
				
			||||||
    # add comments here and/or in the file itself about
 | 
					 | 
				
			||||||
    # why sweeping subject is tricky.
 | 
					 | 
				
			||||||
    'zerver/lib/stream_topic.py',
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    # This has lots of query data embedded, so it's hard
 | 
					    # This has lots of query data embedded, so it's hard
 | 
				
			||||||
    # to fix everything until we migrate the DB to "topic".
 | 
					    # to fix everything until we migrate the DB to "topic".
 | 
				
			||||||
    'zerver/tests/test_narrow.py',
 | 
					    'zerver/tests/test_narrow.py',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,8 +13,8 @@ class StreamTopicTarget:
 | 
				
			|||||||
    '''
 | 
					    '''
 | 
				
			||||||
    This class is designed to help us move to a
 | 
					    This class is designed to help us move to a
 | 
				
			||||||
    StreamTopic table or something similar.  It isolates
 | 
					    StreamTopic table or something similar.  It isolates
 | 
				
			||||||
    places where we are are still using `subject` or
 | 
					    places where we are are still using `topic_name` as
 | 
				
			||||||
    `topic_name` as a key into tables.
 | 
					    a key into tables.
 | 
				
			||||||
    '''
 | 
					    '''
 | 
				
			||||||
    def __init__(self, stream_id: int, topic_name: str) -> None:
 | 
					    def __init__(self, stream_id: int, topic_name: str) -> None:
 | 
				
			||||||
        self.stream_id = stream_id
 | 
					        self.stream_id = stream_id
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user