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

Update bookmarks #343

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

AyshaHakeem
Copy link
Contributor

Refactor code for bookmarking discussions.

@AyshaHakeem AyshaHakeem requested review from netchampfaris and removed request for netchampfaris November 17, 2024 20:21
Copy link

cypress bot commented Nov 17, 2024

gameplan    Run #296

Run Properties:  status check passed Passed #296  •  git commit 33b0f3bf00 ℹ️: Merge cd8fe0a157663df102854eaa58d4eadd712216d0 into 3bc7a40af78dfade17efb435557a...
Project gameplan
Branch Review refs/pull/343/merge
Run status status check passed Passed #296
Run duration 02m 02s
Commit git commit 33b0f3bf00 ℹ️: Merge cd8fe0a157663df102854eaa58d4eadd712216d0 into 3bc7a40af78dfade17efb435557a...
Committer Aysha
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 6
View all changes introduced in this branch ↗︎

Copy link
Contributor

@netchampfaris netchampfaris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check inline comments

@@ -459,69 +459,23 @@ def search(query, start=0):


@frappe.whitelist()
def check_bookmark(discussionId):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All python files use tab indentations. It seems your editor has converted it into spaces.

DesktopLayout: typeof import('./src/components/DesktopLayout.vue')['default']
DiscussionBreadcrumbs: typeof import('./src/components/DiscussionBreadcrumbs.vue')['default']
DiscussionList: typeof import('./src/components/DiscussionList.vue')['default']
DiscussionListByData: typeof import('./src/components/DiscussionListByData.vue')['default']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A single line change shouldn't affect other lines in a commit. This messes up git blame. If you want to format the other lines, do it in another commit.

@@ -0,0 +1,114 @@
<template>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a duplicate of DiscussionList without the data fetching. The correct way for this refactor is to make DiscussionList use DiscussionListByData.

Also, DiscussionList is a better name for a component that only renders UI and data fetching can be done separately.

@@ -125,6 +119,7 @@ import ImagePreview from '../components/ImagePreview.vue'
import ColorPicker from '@/components/ColorPicker.vue'
import ProfileImageEditor from '@/components/ProfileImageEditor.vue'
import UserImage from '@/components/UserImage.vue'
import DiscussionListByData from '@/components/DiscussionListByData.vue'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused import?

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.

2 participants