chef / chef/chef-server

Partybus DB migrations to run prints the object not the versions

Open
#2,742 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Aspect: UX Type: Bug
Dominant language
Erlang
Stars
303
Forks
211
Avg merge
1d 8h
Merged PRs (30d)
5

Description

Chef Server Version

14.8

Platform Details

Ubuntu 20.04

Error

Partybus isn't printing out the versions to run correctly:

[Infra Server Upgrade] - Latest PostgreSQL Database Migration Available: 1.36
[Infra Server Upgrade] - Database PostgreSQL Database Migrations to Run: [#<Partybus::MigrationFile:0x000055969b8fbce0 @path="/opt/opscode/embedded/upgrades/001/036_reindex_postgres13.rb", @major=1, @minor=36>]
[Infra Server Upgrade] - Current PostgreSQL Database Migration Version: 1.35

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Partybus's migration logging around /opt/opscode/embedded/upgrades/001/036_reindex_postgres13.rb and compare the migration object output with the expected version list. Reproduce the upgrade output and confirm that the migrations-to-run line prints versions rather than the Partybus::MigrationFile object representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, ruby
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.