Skip to content

Adiciona modelo VisualResourceBase e testes #937

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

Merged

Conversation

Rossi-Luciano
Copy link
Collaborator

O que esse PR faz?

Adiciona modelo VisualResourceBase e testes.

Onde a revisão poderia começar?

Por commit.

Como este poderia ser testado manualmente?

NA

Algum cenário de contexto que queira dar?

NA

Screenshots

NA

Quais são tickets relevantes?

Substitui PR #915

Referências

NA

@@ -0,0 +1,46 @@
from packtools.sps.models.accessibility_data import AccessibilityData
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano AccessibilityData já está no branch master?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@robertatakenaka, tem um PR específico para AccessibilityData

Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano então este está aprovado, mas você faça o merge quando o outro estiver aprovado



class XmlVisualResource:
RESOURCE_TYPES = []
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano como se instancia? como se usa?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@robertatakenaka modifiquei para RESOURCE_TYPES ser um parâmetro.

for node in self.article_and_subarticles:
full_text = Fulltext(node)

for resource_type, resource_class in self.RESOURCE_TYPES:
Copy link
Member

Choose a reason for hiding this comment

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

@Rossi-Luciano entendi o uso, mas acho que não tem demanda para isso. Está sendo misturado no retorno inline-media e media. Acho mais conveniente haver um método para cada uma, caso haja a demanda de obter ambas, que cada método seja chamado

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@robertatakenaka modifiquei para RESOURCE_TYPES ser um parâmetro.

@robertatakenaka robertatakenaka merged commit 6123da1 into scieloorg:master Apr 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants