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

Améliore les commentaires de zds.tutorialv2.models.models_versioned #4665

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

motet-a
Copy link
Contributor

@motet-a motet-a commented Sep 25, 2017

Ça me semble mieux mais ça peut contenir des fautes. Relisez
attentivement, je n’ai pas un anglais parfait.

Améliore légèrement quelque parties du code, au niveau de la
génération des slugs notamment.

Numéro du ticket concerné (optionnel) : aucun

Contrôle qualité

Relisez.

@motet-a motet-a added the C-Back Concerne le back-end Django label Sep 25, 2017
@motet-a motet-a self-assigned this Sep 25, 2017
if len(base) > max_slug_size - 1 - max_suffix_digit_count:
# There is a `- 1` because of the dash between the slug
# itself and the numeric suffix.
base = base[:max_slug_size] - 1 - max_suffix_digit_count
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3


def add_slug_to_pool(self, slug):
"""Add a slug to the slug pool to be taken into account when generate a unique slug
def __add_slug_to_pool(self, slug):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@@ -715,13 +724,6 @@ def traverse(self, only_container=True):
elif not only_container:
yield child

def is_part(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -72,6 +72,14 @@ def test_workflow_content(self):
self.assertTrue(self.part1.slug in versioned.children_dict.keys())
self.assertTrue(self.chapter1.slug in versioned.children_dict[self.part1.slug].children_dict)

def test_slug_pool(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@motet-a motet-a force-pushed the tutorials-models-comments branch 5 times, most recently from c9094d9 to 53589f5 Compare September 25, 2017 18:27
@zestedesavoir zestedesavoir deleted a comment from coveralls Sep 25, 2017
@zestedesavoir zestedesavoir deleted a comment from coveralls Sep 25, 2017
@zestedesavoir zestedesavoir deleted a comment from coveralls Sep 25, 2017
@zestedesavoir zestedesavoir deleted a comment from coveralls Sep 25, 2017
@zestedesavoir zestedesavoir deleted a comment from coveralls Sep 25, 2017
@zestedesavoir zestedesavoir deleted a comment from coveralls Sep 25, 2017
@motet-a motet-a added the QA svp label Sep 26, 2017
@motet-a motet-a added this to the Version de développement milestone Sep 26, 2017
@zestedesavoir zestedesavoir deleted a comment from coveralls Sep 28, 2017
Ça me semble mieux mais ça peut contenir des fautes. Relisez
attentivement, je n’ai pas un anglais parfait.

Améliore légèrement quelque parties du code, au niveau de la
génération des slugs notamment.
@coveralls
Copy link

coveralls commented Oct 3, 2017

Coverage Status

Coverage decreased (-0.003%) to 89.744% when pulling fbe4415 on motet-a:tutorials-models-comments into 30a911c on zestedesavoir:dev.

@zestedesavoir zestedesavoir deleted a comment from coveralls Oct 3, 2017
@zestedesavoir zestedesavoir deleted a comment from coveralls Oct 3, 2017
@zestedesavoir zestedesavoir deleted a comment from coveralls Oct 3, 2017
@zestedesavoir zestedesavoir deleted a comment from coveralls Oct 3, 2017
Copy link
Member

@gllmc gllmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La relecture est OK pour moi, et étant donné la réussite du check Travis, je pense qu'on peut y aller !

@artragis artragis merged commit 436de1c into zestedesavoir:dev Oct 4, 2017
@motet-a motet-a deleted the tutorials-models-comments branch October 4, 2017 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Back Concerne le back-end Django
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants