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

chore: Fix type issue for list principals #436

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vardanbansal-harness
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Nov 13, 2024

Deploy Preview for harness-xd-review ready!

Name Link
🔨 Latest commit 7d0c47a
🔍 Latest deploy log https://app.netlify.com/sites/harness-xd-review/deploys/673536b34c9c6e0008b34c61
😎 Deploy Preview https://deploy-preview-436--harness-xd-review.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -58,8 +58,7 @@ export default function PullRequestConversationPage() {
const [checkboxBypass, setCheckboxBypass] = useState(false)
const { spaceId, repoId } = useParams<PathParams>()
const { data: { body: principals } = {} } = useListPrincipalsQuery({
// @ts-expect-error : BE issue - not implemnted
queryParams: { page: 1, limit: 100, type: 'user' }
queryParams: { page: 1, limit: 100, type: ['user'] }
Copy link
Contributor

Choose a reason for hiding this comment

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

when api call is made it doesn't work when
type: ['user']

Copy link
Contributor

Choose a reason for hiding this comment

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

// @ts-expect-error - api call shows the array type but if we dont use the string type it will throw error
queryParams: { page: 1, limit: 20, type: 'user' }
// api call shows the array type but if we dont use the string type it will throw error
queryParams: { page: 1, limit: 20, type: ['user'] }
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

@@ -50,8 +50,7 @@ export const RepoBranchSettingsRulesPageContainer = () => {
)

const { data: { body: principals } = {}, error: principalsError } = useListPrincipalsQuery({
// @ts-expect-error : BE issue - not implemnted
queryParams: { page: 1, limit: 100, type: 'user' }
queryParams: { page: 1, limit: 100, type: ['user'] }
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

Copy link
Contributor

@cjlee01 cjlee01 left a comment

Choose a reason for hiding this comment

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

api call does not work

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