← Back to team overview

launchpad-reviewers team mailing list archive

Re: [Merge] ~jugmac00/launchpad:update-wadl-for-inclusive-naming into launchpad:master

 

@guruprasad - thanks for the review. I think there is nothing to do from my side.

Let's wait until Colin has a chance to have a look at the changes.

Diff comments:

> diff --git a/lib/lp/buildmaster/interfaces/builder.py b/lib/lp/buildmaster/interfaces/builder.py
> index acd1dfd..a43fb7e 100644
> --- a/lib/lp/buildmaster/interfaces/builder.py
> +++ b/lib/lp/buildmaster/interfaces/builder.py
> @@ -101,7 +101,7 @@ class IBuilderModerateAttributes(Interface):
>      manual = exported(Bool(
>          title=_('Manual Mode'), required=False, default=False,
>          description=_('The auto-build system does not dispatch '
> -                      'jobs automatically for slaves in manual mode.')))
> +                      'jobs automatically for worker in manual mode.')))

Yes, this is common terminology.

>  
>      builderok = exported(Bool(
>          title=_('Builder State OK'), required=True, default=True,
> diff --git a/lib/lp/registry/javascript/distroseriesdifferences_details.js b/lib/lp/registry/javascript/distroseriesdifferences_details.js
> index 2f4066c..f007fec 100644
> --- a/lib/lp/registry/javascript/distroseriesdifferences_details.js
> +++ b/lib/lp/registry/javascript/distroseriesdifferences_details.js
> @@ -345,11 +345,11 @@ Y.extend(BlacklistWidget, Y.Widget, {
>      ANIM_DURATION: 1,
>  
>      /**
> -     * Submit the blacklist or unblacklist action. Updates the comment
> +     * Submit the blocklist or unblocklist action. Updates the comment
>       * list if successful.
>       *
>       * @param method_name {String}
> -     *     'blacklist' or 'unblacklist'.
> +     *     'blocklist' or 'unblocklist'.
>       * @param blacklist_all {Boolean}
>       *     Is this a blacklist all versions or blacklist current (only
>       *     relevant if method_name is 'blacklist').

You need to be more specific. I do not see anything to fix.

> @@ -376,7 +376,7 @@ Y.extend(BlacklistWidget, Y.Widget, {
>                              from: { backgroundColor: '#FFFFFF'},
>                              to: { backgroundColor: '#EEEEEE'},
>                              duration: self.ANIM_DURATION,
> -                            reverse: (method_name === 'unblacklist')
> +                            reverse: (method_name === 'unblocklist')
>                          });
>                          fade_to_gray.on('end', function() {
>                              self.fire('blacklisting_animation_ended');

I do not see what needs to be changed. You may need to be more specific. Please note, that the scope of the issue was to update the wadl generation, not to apply inclusive naming on the complete Launchpad code base, which is completely out of scope, and which probably needs a full week or even longer.

> diff --git a/lib/lp/registry/tests/test_distroseriesdifference.py b/lib/lp/registry/tests/test_distroseriesdifference.py
> index 9ab7cae..0163383 100644
> --- a/lib/lp/registry/tests/test_distroseriesdifference.py
> +++ b/lib/lp/registry/tests/test_distroseriesdifference.py
> @@ -448,57 +448,57 @@ class DistroSeriesDifferenceTestCase(TestCaseWithFactory):
>              sorted([packageset.name for packageset in packagesets]),
>              [packageset.name for packageset in ds_diff.packagesets])
>  
> -    def test_blacklist_unauthorised(self):
> +    def test_blocklist_unauthorised(self):
>          # If you're not an archive admin, you don't get to blacklist or
> -        # unblacklist.
> +        # unblocklist.
>          ds_diff = self.factory.makeDistroSeriesDifference()
>          random_joe = self.factory.makePerson()
>          with person_logged_in(random_joe):
> -            self.assertRaises(Unauthorized, getattr, ds_diff, 'blacklist')
> -            self.assertRaises(Unauthorized, getattr, ds_diff, 'unblacklist')
> +            self.assertRaises(Unauthorized, getattr, ds_diff, 'blocklist')
> +            self.assertRaises(Unauthorized, getattr, ds_diff, 'unblocklist')
>  
> -    def test_blacklist_default(self):
> -        # By default the current version is blacklisted.
> +    def test_blocklist_default(self):
> +        # By default the current version is blocklisted.
>          ds_diff = self.factory.makeDistroSeriesDifference()
>          admin = self.factory.makeArchiveAdmin(
>              ds_diff.derived_series.main_archive)
>  
>          with person_logged_in(admin):
> -            ds_diff.blacklist(admin)
> +            ds_diff.blocklist(admin)
>  
>          self.assertEqual(
>              DistroSeriesDifferenceStatus.BLACKLISTED_CURRENT,
>              ds_diff.status)
>  
> -    def test_blacklist_all(self):
> -        # All versions are blacklisted with the all=True param.
> +    def test_blocklist_all(self):
> +        # All versions are blocklisted with the all=True param.
>          ds_diff = self.factory.makeDistroSeriesDifference()
>          admin = self.factory.makeArchiveAdmin(
>              ds_diff.derived_series.main_archive)
>  
>          with person_logged_in(admin):
> -            ds_diff.blacklist(admin, all=True)
> +            ds_diff.blocklist(admin, all=True)
>  
>          self.assertEqual(
>              DistroSeriesDifferenceStatus.BLACKLISTED_ALWAYS,
>              ds_diff.status)
>  
> -    def test_unblacklist(self):
> -        # Unblacklisting will return to NEEDS_ATTENTION by default.
> +    def test_unblocklist(self):
> +        # Unblocklisting will return to NEEDS_ATTENTION by default.
>          ds_diff = self.factory.makeDistroSeriesDifference(
>              status=DistroSeriesDifferenceStatus.BLACKLISTED_CURRENT)

I do not understand what you mean.

>          admin = self.factory.makeArchiveAdmin(
>              ds_diff.derived_series.main_archive)
>  
>          with person_logged_in(admin):
> -            ds_diff.unblacklist(admin)
> +            ds_diff.unblocklist(admin)
>  
>          self.assertEqual(
>              DistroSeriesDifferenceStatus.NEEDS_ATTENTION,
>              ds_diff.status)
>  
> -    def test_unblacklist_resolved(self):
> -        # Status is resolved when unblacklisting a now-resolved difference.
> +    def test_unblocklist_resolved(self):
> +        # Status is resolved when unblocklisting a now-resolved difference.
>          ds_diff = self.factory.makeDistroSeriesDifference(
>              versions={
>                  'derived': '0.9',


-- 
https://code.launchpad.net/~jugmac00/launchpad/+git/launchpad/+merge/411788
Your team Launchpad code reviewers is requested to review the proposed merge of ~jugmac00/launchpad:update-wadl-for-inclusive-naming into launchpad:master.



References