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

fixes after 2022.04 #3199

Merged
merged 2 commits into from
May 12, 2022
Merged

Conversation

antgonza
Copy link
Member

General improvements after deployment.

@@ -55,6 +55,26 @@ class Artifact(qdb.base.QiitaObject):
"""
_table = "artifact"

@classmethod
Copy link
Member Author

Choose a reason for hiding this comment

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

We need to iter over all Artifacts more often than before, thus this method.

@@ -79,17 +99,6 @@ def iter_by_visibility(cls, visibility):
for a_id in qdb.sql_connection.TRN.execute_fetchflatten():
yield cls(a_id)

@classmethod
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not used anywhere in the code.

qdb.sql_connection.TRN.add(
sql, [tuple(pt.id for a in all_artifacts
for pt in a.prep_templates)])
# there are cases that an artifact would not be linked to a
Copy link
Member Author

Choose a reason for hiding this comment

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

Now we have artifacts (like those generated by the sequencing processing pipeline) without prep/analysis linkages.

{% else %}
<a href="https://github.com/biocore/qiita/commit/{{qiita_sha}}">
{% end %}
<a href="https://github.com/qiita-spots/qiita/releases">
Copy link
Member Author

Choose a reason for hiding this comment

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

We should point to the releases page vs. the sha that is too dev oriented.

port = p_url.port
except Exception:
port = 22

Copy link
Member Author

Choose a reason for hiding this comment

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

The ssh connection is currently broken due to newer python, this fixes it.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 92.878% when pulling 3330438 on antgonza:fixes-after-2022.04 into 688bf74 on qiita-spots:dev.

@charles-cowart charles-cowart self-requested a review May 12, 2022 20:01
Copy link
Contributor

@charles-cowart charles-cowart left a comment

Choose a reason for hiding this comment

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

Everything looks good so far.

@charles-cowart charles-cowart merged commit 874b993 into qiita-spots:dev May 12, 2022
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.

None yet

3 participants