-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Refactor Narrow structure #1375
base: main
Are you sure you want to change the base?
Conversation
5b6e384
to
e7ddb3b
Compare
This commit contains get_narrow() and get_narrow_length() which are used to provide data inside narrow and length of narrow respectively to other components of the codebase.
This commit replaces all instances where Model.narrow is directly used with usage of functions Model.get_narrow() and Model.get_narrow_length() in order to limit direct access to Model.narrow to Model class.
This commit replaces all instances which directly access Model.narrow with usage of functions Model.get_narrow() and Model.get_narrow_length() to restrict access to narrow data structure to only Model class.
This commit replaces all instances of direct usage of Model.narrow with respective functions.
e7ddb3b
to
2924a28
Compare
Hello @zulip/server-refactoring members, this pull request was labeled with the "area: refactoring" label, so you may want to check it out! |
Heads up @mounilKshah, we just merged some commits that conflict with the changes you made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
What does this PR do, and why?
This PR is to refactor narrow code.
Outstanding aspect(s)
External discussion & connections
How did you test this?
Self-review checklist for each commit