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

As a CLI user, I can edit the list of builds in an update #3037

Closed
bowlofeggs opened this issue Feb 22, 2019 · 2 comments
Closed

As a CLI user, I can edit the list of builds in an update #3037

bowlofeggs opened this issue Feb 22, 2019 · 2 comments
Assignees
Labels
Client Issues with the bodhi command line interface tool EasyFix These are good issues to get started with if you are new to the project RFE Requests for Enhancement

Comments

@bowlofeggs
Copy link
Contributor

I just noticed that bodhi updates edit does not let you add or remove builds from an update. We should give it the ability to alter the set of builds on an update.

@bowlofeggs bowlofeggs added EasyFix These are good issues to get started with if you are new to the project RFE Requests for Enhancement Client Issues with the bodhi command line interface tool labels Feb 22, 2019
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 22, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 25, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 25, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 25, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 25, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 25, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 25, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 25, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 26, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 28, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Feb 28, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 1, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 1, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 1, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 1, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 1, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 4, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 4, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 4, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 4, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 4, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 4, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 13, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1714
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 13, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1714
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 13, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1714
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 13, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1714
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 13, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1714
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
bowlofeggs added a commit to bowlofeggs/bodhi that referenced this issue Mar 13, 2019
The updates.title field used to be a space separated list of the
builds found in the update, with a uniqueness constraint. There
were at least two problems with it.

One problem was that the list of builds was not consistently
updated (fedora-infra#1946) and sometimes the title did not reflect the current
set of builds in the update. This was more severe than it may seem,
because it turns out that the CLI was using the title to set the
list of builds when editing updates, instead of using the list of
builds. This means that the CLI could set the list of builds back
to a former set, rather than leaving it at the set it was
currently at. Note that the CLI does not currently support editing
the set of builds on an update (fedora-infra#3037), so it is especially
surprising when this happens.

The second problem is that large updates with many builds end up
generating a very long title and PostgreSQL raises an error
because it refuses to index strings beyond a certain length. It
was found, for example, that release engineering could not create
an update with 300 builds in it. Since we plan to use Bodhi to work
with side tags as part of gating Fedora Rawhide, it will be
important for users to be able to create updates with large
numbers of builds.

The title was also not a particularly useful field. It was possible
to use it as a key to access an update, but that was a poor use for
it since the title changes when the list of builds change, and
because the order of the list of builds was important. This led to
unpredictable and unstable URLs for updates, and Bodhi already had
an update alias field which is stable and is better suited for that
purpose.

This commit drops the field from the database and removes it from
being used to reference updates in the API. It preserves it in API
responses, however, but now generates it dynamically so that the
title is always an accurate list of the builds included in the
update.

fixes fedora-infra#186
fixes fedora-infra#1542
fixes fedora-infra#1714
fixes fedora-infra#1946

Signed-off-by: Randy Barlow <[email protected]>
@tdawson tdawson self-assigned this Mar 29, 2019
@tdawson
Copy link
Contributor

tdawson commented Apr 3, 2019

Pull request for this option
#3125

@tdawson
Copy link
Contributor

tdawson commented Apr 8, 2019

Pull request has been merged.
This should be available in the next release.

@cverna cverna closed this as completed Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client Issues with the bodhi command line interface tool EasyFix These are good issues to get started with if you are new to the project RFE Requests for Enhancement
Projects
None yet
Development

No branches or pull requests

3 participants