X Tutup
Skip to content

Fix versions for files named '0'#39300

Merged
phil-davis merged 2 commits intomasterfrom
issues/36000
Sep 28, 2021
Merged

Fix versions for files named '0'#39300
phil-davis merged 2 commits intomasterfrom
issues/36000

Conversation

@JammingBen
Copy link
Contributor

Description

This fixes an issue where files named "0" were missing their versions in the WebUI.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

WFM. Note: the old versions seem to already be there. They were being saved, just not displayed. I uploaded a file called "0" a few times using master code. No versions were displayed. I switched to this branch and uploaded "0" again. I got all the versions displayed.

You could just add a unit test case for calling getVersions() with $filename "0".

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@phil-davis phil-davis merged commit ff2a92b into master Sep 28, 2021
@delete-merged-branch delete-merged-branch bot deleted the issues/36000 branch September 28, 2021 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

file called 0 does not have versions

2 participants

X Tutup