Open Bug 386845 Opened 17 years ago Updated 10 years ago

<blocked> field should be <blocks>

Categories

(Bugzilla :: Bugzilla-General, defect)

defect
Not set
normal

Tracking

()

People

(Reporter: timeless, Unassigned)

References

()

Details

Attachments

(1 file, 1 obsolete file)

<bugzilla version="3.0+" urlbase="https://bugzilla.mozilla.org/" maintainer="bugzilla-admin@mozilla.org" exporter="timeless@bemail.org">
...
<dependson>347662</dependson>
<dependson>386253</dependson>
<dependson>386332</dependson>
<blocked>347742</blocked>
<blocked>354102</blocked>

blocked is the wrong word, it should be "blocks". reported by DaveFr on irc.
Attached patch i think this might do it (obsolete) — Splinter Review
Assignee: webservice → timeless
Status: NEW → ASSIGNED
Attachment #270887 - Flags: review?(nb+bz)
Comment on attachment 270887 [details] [diff] [review]
i think this might do it

>Index: Bugzilla/Install/DB.pm

>+    $dbh->bz_rename_column('dependencies',
>+                           'dependencies_blocked_idx',
>+                           'dependencies_blocked_idx');

There is no such column. An index is not a column (and you wrote twice the same index).
Attachment #270887 - Flags: review-
ok, so how do i rename an index? :)

get_rename_indexes_ddl is all i can find, and its use isn't apparent given it's only used once....
I've always thought this, but I never thought it was important enough to change. :-) I'm glad somebody's doing it, but we should wait until after bug 385379.
Attachment #270887 - Attachment is obsolete: true
Attachment #270908 - Flags: review?(nb+bz)
Attachment #270887 - Flags: review?(nb+bz)
(In reply to comment #4)
> I've always thought this, but I never thought it was important enough to
> change.

I still don't think it worths it. And generating extra code (old_foo || new_foo) is pointless to me.
Comment on attachment 270908 [details] [diff] [review]
this should be closer

If you want to update some visual thing, i.e. something the user will see, I could accept it. But I don't want such changes in the backend code, especially because not all changes make sense. I also don't want to see the DB indexes to be altered for something a user will never see.
Attachment #270908 - Flags: review?(nb+bz) → review-
Unrelated to WebService
Component: WebService → Bugzilla-General
This tripped me up using QuickSearch.  I tried to search using "blocks:" but it wants me to use "blocked:".
Assignee: timeless → general
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: