Skip to content

Add share metadata to prevent creation of duplicate default access rules

Kyle Tee requested to merge LordParsley/exosphere:feature/share-metadata into master

Overview

This is a follow-up MR from !922 (merged) which fixes #975 (closed).

  • Add share metadata to track "exoClientUuid".
  • Only create a default access rule if the current "exoClientUuid" matches that of the newly created share.

How to Test

  1. Open two tabs on the shares list page.
  2. In one, create a share. When pressing create, prepare to tab-switch.
  3. Press create & switch to the other tab & refresh it.
  • The aim to cause both tabs to be in a state where they have fetched the latest shares list, &
  • The latest shares list has a new share in it for the project.
  • This triggers share polling in orchestration.

The original tab ought to execute a create access rule request within 5 seconds (if the share is available). The alternate tab ought to poll until it finds the share is no longer new with no access rules.

Screenshots

Example metadata on the share.

Screenshot_2024-03-20_at_13.31.15

Edited by Kyle Tee

Merge request reports