Skip to content

Conversation

@sanskar-soni-9
Copy link
Member

@sanskar-soni-9 sanskar-soni-9 commented Jun 9, 2024

Summary

Naming a file version to a number (e.g. 1 or 1.0) is received as number type in the response object breaking the renaming of version as it needed to be a string

Todo

  • Get the correct version name when its in float ending with '0' (e.g. 2.0 becomes 2 but 2.1 - 2.9 it will show correct version)

Before

240609_09h27m35s_screenshot

After

240609_09h28m45s_screenshot

Checklist

@solracsf solracsf requested review from artonge, skjnldsv and susnux June 9, 2024 05:50
@solracsf solracsf added the 3. to review Waiting for reviews label Jun 9, 2024
@solracsf solracsf added this to the Nextcloud 30 milestone Jun 9, 2024
@joshtrichards
Copy link
Member

/backport to stable29

@joshtrichards
Copy link
Member

/backport to stable28

@artonge
Copy link
Contributor

artonge commented Jun 10, 2024

/compile /

@artonge artonge enabled auto-merge June 10, 2024 10:31
@sanskar-soni-9
Copy link
Member Author

Its failing, do I need to fix anything?

@artonge
Copy link
Contributor

artonge commented Jun 11, 2024

Its failing, do I need to fix anything?

Can you compile and commit the build files?

auto-merge was automatically disabled June 11, 2024 11:08

Head branch was pushed to by a user without write access

@sanskar-soni-9
Copy link
Member Author

Its failing, do I need to fix anything?

Can you compile and commit the build files?

is this correct?

@artonge
Copy link
Contributor

artonge commented Jun 11, 2024

@sanskar-soni-9 and now the DCO :)
Also, CI is red, but probably unrelated to your changes, it should be fixed soon :).

@sanskar-soni-9
Copy link
Member Author

@sanskar-soni-9 and now the DCO :) Also, CI is red, but probably unrelated to your changes, it should be fixed soon :).

sorry forgot to sign commit, in CI I saw its saying to run composer update should I do that and add those files too?

@artonge
Copy link
Contributor

artonge commented Jun 11, 2024

sorry forgot to sign commit, in CI I saw its saying to run composer update should I do that and add those files too?

No, this is the error I am referring to in my last comment. Ignore it for now, and we'll try to fix it on our side :).

@sanskar-soni-9
Copy link
Member Author

sorry forgot to sign commit, in CI I saw its saying to run composer update should I do that and add those files too?

No, this is the error I am referring to in my last comment. Ignore it for now, and we'll try to fix it on our side :).

Okay, btw do I need to add build files with each PR. And Thanks a lot for helping 😊

@artonge
Copy link
Contributor

artonge commented Jun 11, 2024

do I need to add build files with each PR

In most repo, yes :). In doubt, just check the CI.

@sanskar-soni-9
Copy link
Member Author

In most repo, yes :). In doubt, just check the CI.

Thanks for clarifying, will keep that in mind from next time :)

@artonge
Copy link
Contributor

artonge commented Jun 18, 2024

@sanskar-soni-9 can you rebase? You'll need to npm ci && npm run build during the conflict resolution.

@sanskar-soni-9
Copy link
Member Author

@artonge done :)

@susnux susnux changed the base branch from master to fix/renaming-file-version-when-number June 18, 2024 21:36
@susnux
Copy link
Contributor

susnux commented Jun 18, 2024

@sanskar-soni-9 we need to merge this into a branch first to run the CI, but we will merge into master when green.
Thank you so much :)

@susnux susnux merged commit 3409c21 into nextcloud:fix/renaming-file-version-when-number Jun 18, 2024
@backportbot
Copy link

backportbot bot commented Jun 18, 2024

The backport to stable28 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable28
git pull origin stable28

# Create the new backport branch
git checkout -b backport/45733/stable28

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 7e539f66 cd0bd9d3

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/45733/stable28

Error: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@github-actions
Copy link
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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.

[Bug]: Naming File Version a number removes ability to edit version

6 participants