Skip to content

Type cast IDs from string to int #198

@taimoor-ahmed-1

Description

@taimoor-ahmed-1

During the migration from forum v1 to v2, support for 2 database backends namely, mongodb and mysql, were added which meant having mongo hashes being converted to strings in Open edX and being sent to forum apis. Since, forum is going to deprecate the mongodb backend soon (work is ongoing), it won't be needing the support for mongo ids and mysql ids simultaneously. The discussion module in edx-platform and forum apis therefore, can be simplified to not type cast ids from str to int and to str again. This will clean up a lot of code in both repositories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    core contributorPR author is a Core Contributor (who may or may not have write access to this repo).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions