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

TASK: Stop using "PostId" #1097

Open
johnhenley opened this issue Oct 5, 2024 · 0 comments
Open

TASK: Stop using "PostId" #1097

johnhenley opened this issue Oct 5, 2024 · 0 comments
Labels
epic Placeholder for large development which may include multiple issues and/or pull requests review in process Issue noted and currently being triaged/reviewed by developer tasks General maintenance tasks that aren't typical development
Milestone

Comments

@johnhenley
Copy link
Collaborator

As we continue the modernization of DNN Community Forums, there are still some lingering concepts needing attention. One is the use of an artificial concept of "PostId", which is the topicid for originating topic in a thread, but is the replyid for replies to the originating topic. Where this becomes problematic is in code that says postId==topicid, which leads to subtle and hard to diagnose bugs. Example when "quoting" a post, that code uses postId ==topicid to determine if you are quoting the originating topic or a reply. But what happens if the replyid value is the same as the topicid? Your intention is to be quoting the reply but you end up quoting the originating topic. Rare, but it happens.

We need to use a stronger concept like

  • creating a truly unique postId and. A table to map to combined topicid/replyid (where replyid is null for originating topic but populated for replies)
  • Replaces postId with replyid (if originating topic use null, 0, -1)?
  • use contentid which already exists and is equivalent yet unique
@johnhenley johnhenley added this to the Future milestone Oct 5, 2024
@johnhenley johnhenley added tasks General maintenance tasks that aren't typical development review in process Issue noted and currently being triaged/reviewed by developer epic Placeholder for large development which may include multiple issues and/or pull requests labels Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Placeholder for large development which may include multiple issues and/or pull requests review in process Issue noted and currently being triaged/reviewed by developer tasks General maintenance tasks that aren't typical development
Projects
None yet
Development

No branches or pull requests

1 participant