Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Conversation

@tmscarla
Copy link
Contributor

Description

Following the UX refactoring of ParallelCluster Manager, this PR aims at moving the 'Enable Slurm Memory Based Scheduling' toggle from the HeadNode to the Queues wizard section, in a new, dedicated box.

With PC 3.3, multiple InstanceTypes per queues have been introduced. We need to disable Slurm Memory Based Scheduling in case of multiple instance types have been selected. This issue will be handled in a dedicated PR.

Changelog entry

  • Moved Slurm memory based scheduling from 'HeadNode' to 'Queues' wizard section

How Has This Been Tested?

  • Successfully created cluster with Slurm Memory Based Scheduling enabled
  • Successfully created cluster without Slurm Memory Based Scheduling enabled
  • Info button works as expected

References

PR Quality Checklist

  • I added tests to new or existing code
  • I removed hardcoded strings and used our i18n solution instead (see here)
  • I checked that infrastructure/update_infrastructure.sh runs without any error
  • I checked that npm run build builds without any error
  • I checked that clusters are listed correctly
  • I checked that a new cluster can be created (config is produced and dry run passes)
  • I checked that login and logout work as expected

In order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tmscarla tmscarla added the enhancement New feature or request label Oct 19, 2022
@tmscarla tmscarla requested a review from mtfranchetto October 19, 2022 07:44
@tmscarla tmscarla force-pushed the tsscarla/move-memory-based branch from a206bba to eb37ba5 Compare October 19, 2022 14:28
Comment on lines 78 to 80
<a href="#" className={styles.info}>
{t('wizard.queues.slurmMemorySettings.container.info')}
</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

We could simply leverage the provided Info link

It's not recommended to use them to trigger popovers (source), but for the time being this is the solution we should stick with (we'll implement the help panel in the future)

In general I'd avoid using custom implementations, but rather ping our designer of reference with a suggestion taken from the design system

@tmscarla tmscarla force-pushed the tsscarla/move-memory-based branch from eb37ba5 to 397a77c Compare October 19, 2022 14:47
@tmscarla tmscarla force-pushed the tsscarla/move-memory-based branch from 397a77c to 4fd20b1 Compare October 19, 2022 14:47
@mendaomn mendaomn requested review from mendaomn and removed request for mendaomn October 20, 2022 13:29
}
>
<SpaceBetween size={'s'} direction={'vertical'}>
<div
Copy link
Contributor

Choose a reason for hiding this comment

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

question: is this div needed? I guess it can be safely removed

@tmscarla tmscarla merged commit 0953eba into main Oct 20, 2022
@tmscarla tmscarla deleted the tsscarla/move-memory-based branch October 20, 2022 14:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants