Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

show file-locking information #6682

Description

@exalate-issue-sync

Description

Info about locking is (somehow) available in the backend

User Stories

  • As a user I who has write permissions to a file I want to know if a file is locked, so that I know why I can't edit it.

Value

  • working on office files

Acceptance Criteria

  • If file is locked, 🔒-Icon is shown next to share-indicators in filelist and Details-Right Sidebar Panel
  • Icon is shown immeadiately (--> SSE)-> split out to new ticket
  • Click on 🔒-Icon in files-list, opens right sidebar "Details" -Panel
  • "Lock"Information in the files-details:
    • If Locked Show "Lock: Locked by [Displayname] 23 minutes ago." (if this info is available)
    • If Locked Show "Locked since: Relative Date" (+ Tooltip with Absolute Date)
    • If Locked Show "Locked expires: Relative Date" (+ Tooltip with Absolute Date)
  • Automatic unlocking happens after 30 mins per default; can be adjusted via config file.
  • If file is locked: not available fileactions (move, rename, delete) are disabled and get the addition "(locked)" see sribble
  • Cherry on top: add an indicator on the Filetype icon, so that users see instantly if a file is locked.

Definition of done

  • Functional requirements
    [ ] functionality described in the user story works
    [ ] acceptance criteria are fulfilled
  • Quality
    [ ] codre review happened
    [ ] CI is green
    [ ] critical code received unit tests by the developer
    [ ] automated tests passed (if automated tests are not available, this test needs to be created and passed
  • Non-functional requirements
    [ ] no sonar cloud issues

Activity

  1. exalate-issue-sync commented on Mar 28, 2022

    @exalate-issue-sync
    Author

    Benedikt Kulmann commented: locking information is available in propfinds via property {DAV:}lockdiscovery. Needs to be added to the default dav properties in the constants of packages/web-pkg.

  2. self-assigned this
    on Mar 29, 2022
  3. tbsbdr commented on Jul 26, 2023

    @tbsbdr

    closed by mistake, reopening

  4. lookacat commented on Aug 16, 2023

    @lookacat
    Contributor

    we can't get the timestamp of the lock since its not implemented in the backend

  5. exalate-issue-sync commented on Aug 18, 2023

    @exalate-issue-sync
    Author

    Florian Schade commented: SSE part follows: owncloud/ocis#6992

  6. tbsbdr commented on Aug 22, 2023

    @tbsbdr

    As discussed:

    • should be accessible
    • Add tippy "Item is locked" on hover of the filetype&lock-icon
    • single-selection: disable non-available actions (cut, rename, delete)

    Note: lets see if the overlayed lock-icon on the file-icon receives positive feedback by the users; if not we might need to move it to the shared/status column. let's try :D

  7. lookacat commented on Aug 22, 2023

    @lookacat
    Contributor

    done, will only add unittests then it can get merged

  8. v-scharf commented on Aug 31, 2023

    @v-scharf
    Contributor

    that is great, we avoid a lot of errors when user tries to delete or move locked file

    one question: maybe also hide buttons create tag and share for locked file? because it fails like deleting or moving locked file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions