Closed Bug 485802 Opened 15 years ago Closed 14 years ago

Bunch of minor tweaks/fixes in svn.mozilla.org/addons/trunk

Categories

(addons.mozilla.org Graveyard :: API, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: alsroot, Unassigned)

Details

Attachments

(13 files, 4 obsolete files)

755 bytes, patch
u278084
: review-
Details | Diff | Splinter Review
1.78 KB, patch
Details | Diff | Splinter Review
863 bytes, patch
u278084
: review-
Details | Diff | Splinter Review
1.53 KB, patch
Details | Diff | Splinter Review
847 bytes, patch
clouserw
: review-
Details | Diff | Splinter Review
940 bytes, patch
Details | Diff | Splinter Review
557 bytes, patch
Details | Diff | Splinter Review
538 bytes, patch
Details | Diff | Splinter Review
6.13 KB, patch
u278084
: review+
Details | Diff | Splinter Review
1.35 KB, patch
Details | Diff | Splinter Review
909 bytes, patch
clouserw
: review+
Details | Diff | Splinter Review
1.42 KB, patch
Details | Diff | Splinter Review
1.08 KB, patch
Details | Diff | Splinter Review
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3) Gecko/20090329 Gentoo Shiretoko/3.1b3
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3) Gecko/20090329 Gentoo Shiretoko/3.1b3

Within activities.sugarlabs.org I've made some minor tweaks/fixes in addons trunk code, I think it could be useful for upstream
(attached patches use a couple of new constants like EDITOR_EMAIL)

Reproducible: Always
Attached patch Do not let user delete last application tag (obsolete) — — Splinter Review
Attachment #369890 - Flags: review?
Attached patch Do not let user save empty GUID (obsolete) — — Splinter Review
Attachment #369891 - Flags: review?
Attachment #369892 - Flags: review?
Attachment #369894 - Flags: review?
Attachment #369896 - Flags: review?
Attached patch Fix serach by platform — — Splinter Review
Attachment #369897 - Flags: review?
Attached patch Fix share links — — Splinter Review
Attachment #369898 - Flags: review?
Attachment #369899 - Flags: review?
Attached patch Fix wrong href to files — — Splinter Review
Attachment #369900 - Flags: review?
Attachment #369901 - Flags: review?
Attached patch Remove hardcoded strings — — Splinter Review
Attachment #369902 - Flags: review?
Attachment #369904 - Flags: review?
Attachment #369906 - Flags: review?
Attachment #369907 - Flags: review?
Summary: Bunch of minor teaks/fixes for svn.mozilla.org/addons/trunk → Bunch of minor tweaks/fixes in svn.mozilla.org/addons/trunk
Target Milestone: --- → 5.0.5
Assignee: nobody → jbalogh
Priority: -- → P3
Priority: P3 → P2
Hey Aleksey, these are awesome but we're having a hard time integrating some of the bigger ones without tests.  Did you write any tests for them that you could attach also?

I'm reassigning this to nobody@ to let people pick up patches one at a time.
Assignee: jbalogh → nobody
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 369904 [details] [diff] [review]
Suppress errors if no totals for category

r24458, Thanks.
Attachment #369904 - Flags: review? → review+
Attachment #369898 - Flags: review? → review-
Comment on attachment 369898 [details] [diff] [review]
Fix share links

r-, not because the patch isn't good but that we already changed this in production slightly differently but with the same effect.
(In reply to comment #18)
> Hey Aleksey, these are awesome but we're having a hard time integrating some of
> the bigger ones without tests.  Did you write any tests for them that you could
> attach also?
> 
> I'm reassigning this to nobody@ to let people pick up patches one at a time.

well, in my mind it wasn't a big change, so I tested patches by hands :)
but if you point me to the most vulnerable places I'll try to write tests
(As Wil said, thanks a bunch for all these patches!)

(In reply to comment #1)
> Created an attachment (id=369890) [details]
> Do not let user delete last application tag

Showing the errors is probably a great idea, but how does it prevent deleting the last tag?
(In reply to comment #22)
> (As Wil said, thanks a bunch for all these patches!)
> 
> (In reply to comment #1)
> > Created an attachment (id=369890) [details] [details]
> > Do not let user delete last application tag
> 
> Showing the errors is probably a great idea, but how does it prevent deleting
> the last tag?

https://bug485802.bugzilla.mozilla.org/attachment.cgi?id=369905
when I posted patches I followed per-file rule
(In reply to comment #3)
> Created an attachment (id=369892) [details]
> Do not overlap footer by right panel

I'm not sure where the footer is overlapping the right panel.  Actually, I don't even know what the right panel is. :)

I think you added margin-bottom in there, but it has a value of '25 ex'.  The rule right before that is 'margin: 0 auto 1em'.  The 1em gets applied to margin-bottom (http://www.dustindiaz.com/css-shorthand/); is that not sufficient?
(In reply to comment #23)
> (In reply to comment #22)
> > (As Wil said, thanks a bunch for all these patches!)
> > 
> > (In reply to comment #1)
> > > Created an attachment (id=369890) [details] [details] [details]
> > > Do not let user delete last application tag
> > 
> > Showing the errors is probably a great idea, but how does it prevent deleting
> > the last tag?
> 
> https://bug485802.bugzilla.mozilla.org/attachment.cgi?id=369905
> when I posted patches I followed per-file rule

Ah.  Are there any other patches that belong together?  If they're meant to work together, patching it all at the same time is a big help.

If you just want to list which go together, I'll break them out into separate bugs (since things are already getting jumbled here :).
(In reply to comment #24)
> (In reply to comment #3)
> > Created an attachment (id=369892) [details] [details]
> > Do not overlap footer by right panel
> 
> I'm not sure where the footer is overlapping the right panel.  Actually, I
> don't even know what the right panel is. :)
> 
> I think you added margin-bottom in there, but it has a value of '25 ex'.  The
> rule right before that is 'margin: 0 auto 1em'.  The 1em gets applied to
> margin-bottom (http://www.dustindiaz.com/css-shorthand/); is that not
> sufficient?

well, I couldn't find better solution(I don't know css/html stuff well)
but this(dirty?) hack works for me

you can find this issue on https://addons.mozilla.org/en-US/firefox/ -- in my browser(Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3) Gecko/20090412 Gentoo Shiretoko/3.1b3) I can't see the whole "Recently Updated:" section at the right-bottom corner
(In reply to comment #25)
> Ah.  Are there any other patches that belong together?
yup, my fault 

>  If they're meant to
> work together, patching it all at the same time is a big help.
>
>  If you just want to list which go together, I'll break them out into separate
> bugs (since things are already getting jumbled here :).
let me revise patches, there shouldn't be much cross patches
(In reply to comment #7)
> Created an attachment (id=369897) [details]
> Fix serach by platform

I'm not sure what this is doing/why it works.  Could you add a comment or test please?
(In reply to comment #28)
> (In reply to comment #7)
> > Created an attachment (id=369897) [details] [details]
> > Fix serach by platform
> 
> I'm not sure what this is doing/why it works.  Could you add a comment or test
> please?

on http://activities.sugarlabs.org/ we have different platforms(platform names)
because of that I found this bug

the problem is: list of platforms in old code is sorted by name, with ours platform names we got discrepancy between order number in list and values of PLATFORM_* for particular platform, so i just removed sorting by name
(In reply to comment #29)
> (In reply to comment #28)
> > (In reply to comment #7)
> > > Created an attachment (id=369897) [details] [details] [details]
> > > Fix serach by platform
> > 
> > I'm not sure what this is doing/why it works.  Could you add a comment or test
> > please?
> 
> on http://activities.sugarlabs.org/ we have different platforms(platform names)
> because of that I found this bug
> 
> the problem is: list of platforms in old code is sorted by name, with ours
> platform names we got discrepancy between order number in list and values of
> PLATFORM_* for particular platform, so i just removed sorting by name

and also.. in this patch $pid is equal to PLATFORM_* value(except 0 value - it means any platform).. to be honest I don't remember the exact old behaviour but remember it was wrong in our case
Attachment #369890 - Attachment is obsolete: true
Attachment #369890 - Flags: review?
Attachment #369893 - Attachment is obsolete: true
Attachment #369893 - Flags: review?
Attachment #369905 - Attachment is obsolete: true
Attachment #369905 - Flags: review?
Attachment #369891 - Attachment is obsolete: true
Attachment #369891 - Flags: review?
Depends on: 488612
Depends on: 488614
No longer depends on: 488614
No longer depends on: 488612
(In reply to comment #26)
> If you just want to list which go together, I'll break them out into separate
> bugs (since things are already getting jumbled here :).
I've obsoleted all cross patches and created #488612 and #488614
Target Milestone: 5.0.5 → 5.0.7
Priority: P2 → P3
Target Milestone: 5.0.7 → 5.0.8
Target Milestone: 5.0.8 → Future
Comment on attachment 369896 [details] [diff] [review]
Fix misplaced "any" option for versions in search panel

A victim of bit-rot. We now render the elements/amo2009/search.thtml file.
Attachment #369896 - Flags: review? → review-
Comment on attachment 369892 [details] [diff] [review]
Do not overlap footer by right panel

I think this went away with the new theme.
Attachment #369892 - Flags: review? → review-
Comment on attachment 369900 [details] [diff] [review]
Fix wrong href to files

Can you explain this? By default, FILES_URL already contains 'file/' in the config.php

This works for me without the patch applied.
Comment on attachment 369902 [details] [diff] [review]
Remove hardcoded strings

Please add EDITOR_EMAIL and SITE_IRC, and other php defines in config.php

I'll r+ it with those changes.
Attachment #369902 - Flags: review? → review+
We won't need to incorporate these patches into Remora anymore, but we'd like to thank you, Aleksey, for the hard work and good patches you provided. If in the future you guys are considering moving to Zamboni, you are very welcome to be involved in that project as well!
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
Attachment #369894 - Flags: review?
Attachment #369897 - Flags: review?
Attachment #369899 - Flags: review?
Attachment #369900 - Flags: review?
Attachment #369901 - Flags: review?
Attachment #369903 - Flags: review?
Attachment #369906 - Flags: review?
Attachment #369907 - Flags: review?
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: