Skip to content
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

Fix some router security and code style issues #973

Open
wants to merge 88 commits into
base: master
Choose a base branch
from

Conversation

Catherine9898
Copy link
Contributor

  1. Follow the current routing scopes, the notification belongs to a course, they will naturally pipe through authentication checks, course checks sand staff checks.
  2. Separate admin routes from student/staff routes.
  3. Clean up unnecessary comments and use query styles in the piping fashion (which aligns with the current code base).
  4. Try to use Logger instead of IO for logging.

Santosh3007 and others added 30 commits February 14, 2023 15:32
- Create Notifications module and NotificationType model
- Start migration for adding notifications
- No functionalities added yet only template code
Changes:
* Replaced is_enable to is_enabled for Notification Preferences
* Update default is_enabled to true for Notifcation Types
`import_config` must always appear at the bottom for environment
specific configurations to be applied correctly. All configurations
after this line will overwrite configurations that exists in the
environment specific ones.
- remove auto-generated controllers and views that are not used
If user preference has no time option, use the time_option from
notification_config instead. This is so that the behaviour of these
users with no preferences would always follow the default chosen by the
course admin
@Catherine9898 Catherine9898 changed the title Cat Fix some router security and code style issues Jul 18, 2023
@coveralls
Copy link

Coverage Status

coverage: 91.048% (-4.3%) from 95.358% when pulling 7f4ea7f on Catherine9898:cat into 5d09b51 on source-academy:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants