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

Cscfc4 emscr 422v2 #169

Merged
merged 12 commits into from
May 24, 2024
Merged

Cscfc4 emscr 422v2 #169

merged 12 commits into from
May 24, 2024

Conversation

konolak
Copy link

@konolak konolak commented May 10, 2024

No description provided.

@konolak konolak marked this pull request as ready for review May 14, 2024 15:26
if (!formData) {
return;
}
function isFormValid() {
Copy link

Choose a reason for hiding this comment

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

This is an unused function

Copy link
Author

Choose a reason for hiding this comment

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

Can be removed.

</div>
<div className="col-6">
<div
style={{ display: 'flex', flexDirection: 'column', gap: '20px' }}
Copy link

Choose a reason for hiding this comment

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

Why does this need a styling container when the same component in crosswalk modal doesn't? If it's necessary, should it be in form.styles?

Copy link
Author

Choose a reason for hiding this comment

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

No idea what this is for, haven't written it. Most likely redundant.

@@ -31,23 +48,35 @@ export default function TargetAndSourceSchemaSelector({
createNew,
schemaSelectorDisabled,
}: CrosswalkFormProps) {
const user: any = useSelector(selectLogin());
Copy link

Choose a reason for hiding this comment

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

type is User

setSelectedSourceWorkspace(e);
}}
>
{workspaceValues.map((format) => (
Copy link

Choose a reason for hiding this comment

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

Format?

);
} else {
setTargetSchemas(
defaultSchemas.filter((item) => item.organization !== '')
Copy link

Choose a reason for hiding this comment

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

Shouldn't this be done like the owner is, so you get all organizations in the item.organization, and then check if it includes the organization whose workspace the modal was opened from? The group pid is already passed to the modals, so you just need to thread it through CrosswalkFormFields to get it here as well.

Although as discussed, eventually we'll want to implement this so that the selected filter determines what to fetch from the backend, so I don't know how much more effort we want to put to the interim solution.

@maariaw maariaw merged commit b53be77 into develop May 24, 2024
2 checks passed
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