Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tt-rss: 2021-06-21 -> 2022-08-01 #184496

Closed
wants to merge 1 commit into from
Closed

Conversation

Smaug123
Copy link
Contributor

@Smaug123 Smaug123 commented Aug 1, 2022

Description of changes

Pick up a year's worth of changes from upstream.

I've got an instance of this running, apparently without problems. But there was a database migration of two versions involved, and I didn't have any data to migrate, so I have no idea if this aspect is OK. I also had some trouble cloning the repo until I did nix-prefetch-git at various points - the upstream repository is cgit in a configuration which I think just doesn't serve tarballs? - but eventually nixpkgs-review was happy; and for some reason the feed update daemon didn't start (nor were there any obvious errors) until I rebooted my machine, whereupon it came up happily.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/1058

@ajs124
Copy link
Member

ajs124 commented Aug 1, 2022

please make the commit messages follow contributing.md

@Smaug123
Copy link
Contributor Author

Smaug123 commented Aug 1, 2022

Ah, I was going to squash them down.

@ajs124 ajs124 requested a review from Mic92 August 1, 2022 20:26
@SuperSandro2000 SuperSandro2000 changed the title tt-rss: upgrade to 2022-08-01 tt-rss: 2021-06-21 -> 2022-08-01 Aug 1, 2022
@@ -134,6 +134,8 @@ Use `configure.packages` instead.

- Add udev rules for the Teensy family of microcontrollers.

- The `tt-rss` service performs two database migrations when you first use its web UI after upgrade; consider backing up its database before starting.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- The `tt-rss` service performs two database migrations when you first use its web UI after upgrade; consider backing up its database before starting.
- The `tt-rss` service will perform database migrations when first visiting the web UI after this upgrade. Consider backing up its database before updating.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sigh, time to polish my bikeshed paintbrush! I can see why you prefer "updating" to "starting" even though "starting" is more accurate (since it won't perform the migrations until you press Go in the UI). But "when first visiting" is strictly less clear than "when you first use" (or "visit"), because 1) the agent of "visiting" is not specified and is weakly implied by the grammar to be "the tt-rss service", which is of course nonsense, and 2) "visiting" is in a continuous tense, whereas the upgrade is performed once when you take a specific action.

Copy link
Member

Choose a reason for hiding this comment

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

since it won't perform the migrations until you press Go in the UI

That was not obvious to me from your changelog entry. It sounded more like you must do it before upgrading your system or it is automatically done at startup or immediately when you open the first page in the browser.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe (though couldn't swear to it) that the UI is essentially blank except for the "upgrade" button, so it renders the system unusable until you press the button.

pkgs/servers/tt-rss/default.nix Outdated Show resolved Hide resolved
Pull in a year of upstream changes.
This update will involve two database migrations when logging in to the
resulting service.
@Smaug123
Copy link
Contributor Author

Smaug123 commented Aug 5, 2022

Apologies to anyone I break this way!

@Mic92 Mic92 mentioned this pull request Oct 31, 2022
13 tasks
@Mic92
Copy link
Member

Mic92 commented Oct 31, 2022

Thanks for your PR. I rebased and updated it here: #198748

@Mic92 Mic92 closed this Oct 31, 2022
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.

None yet

6 participants