Skip to content

Commit 346daa4

Browse files
committed
general fixes after deployment
1 parent ef0edb8 commit 346daa4

File tree

5 files changed

+33
-17
lines changed

5 files changed

+33
-17
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Qiita changelog
22

3+
Version 2024.02
4+
---------------
5+
6+
Deployed on July 15th, 2024
7+
8+
* Full refactor of the [DB patching system](https://github.com/qiita-spots/qiita/blob/master/CONTRIBUTING.md#patch-91sql) to make sure that a new production deployment has a fully empty database.
9+
* Fully removed Qiimp from Qiita.
10+
* Users can now add `ORCID`, `ResearchGate` and/or `GoogleScholar` information to their profile and the creation (registration) timestamp is kept in the database. Thank you @jlab.
11+
* Admins can now track and purge non-confirmed users from the database via the GUI (`/admin/purge_users/`). Thank you @jlab.
12+
* Added `qiita.slurm_resource_allocations` to store general job resource usage, which can be populated by `qiita_db.util.update_resource_allocation_table`.
13+
* Added `qiita_db.util.resource_allocation_plot` to generate different models to allocate resources from a given software command based on previous jobs, thank you @Gossty !
14+
* The stats page map can be centered via the configuration file; additionally, the Help and Admin emails are defined also via the configuration files, thank you @jlab !
15+
* ``Sequel IIe``, ``Revio``, and ``Onso`` are now valid instruments for the ``PacBio_SMRT`` platform.
16+
* Added `current_human_filtering` to the prep-information and `human_reads_filter_method` to the artifact to keep track of the method that it was used to human reads filter the raw artifact and know if it's up to date with what is expected via the best practices.
17+
* Added `reprocess_job_id` to the prep-information so we keep track if a preparation has been reprocessed with another job.
18+
* Other general fixes, like [#3385](https://github.com/qiita-spots/qiita/pull/3385), [#3397](https://github.com/qiita-spots/qiita/pull/3397), [#3399](https://github.com/qiita-spots/qiita/pull/3399), [#3400](https://github.com/qiita-spots/qiita/pull/3400), [#3409](https://github.com/qiita-spots/qiita/pull/3409), [#3410](https://github.com/qiita-spots/qiita/pull/3410).
19+
20+
321
Version 2024.02
422
---------------
523

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Just an empty SQL to allow the changes implemented in
2+
-- https://github.com/qiita-spots/qiita/pull/3403 to take effect
3+
SELECT 1;

qiita_db/util.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2730,19 +2730,19 @@ def update_resource_allocation_table(weeks=1, test=None):
27302730

27312731
dates = ['', '']
27322732

2733+
slurm_external_id = 0
2734+
start_date = datetime.strptime('2023-04-28', '%Y-%m-%d')
27332735
with qdb.sql_connection.TRN:
27342736
sql = sql_timestamp
27352737
qdb.sql_connection.TRN.add(sql)
27362738
res = qdb.sql_connection.TRN.execute_fetchindex()
2737-
slurm_external_id, timestamp = res[0]
2738-
if slurm_external_id is None:
2739-
slurm_external_id = 0
2740-
if timestamp is None:
2741-
dates[0] = datetime.strptime('2023-04-28', '%Y-%m-%d')
2742-
else:
2743-
dates[0] = timestamp
2744-
date1 = dates[0] + timedelta(weeks)
2745-
dates[1] = date1.strftime('%Y-%m-%d')
2739+
if res:
2740+
sei, sd = res[0]
2741+
if sei is not None:
2742+
slurm_external_id = sei
2743+
if sd is not None:
2744+
start_date = sd
2745+
dates = [start_date, start_date + timedelta(weeks)]
27462746

27472747
sql_command = """
27482748
SELECT

qiita_pet/handlers/user_handlers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ def validator_rgate_id(form, field):
187187
"Receive Processing Job Emails?")
188188

189189
social_orcid = StringField(
190-
"ORCID", [validator_orcid_id], description="0000-0002-0975-9019")
190+
"ORCID", [validator_orcid_id], description="")
191191
social_googlescholar = StringField(
192-
"Google Scholar", [validator_gscholar_id], description="_e3QL94AAAAJ")
192+
"Google Scholar", [validator_gscholar_id], description="")
193193
social_researchgate = StringField(
194-
"ResearchGate", [validator_rgate_id], description="Rob-Knight")
194+
"ResearchGate", [validator_rgate_id], description="")
195195

196196

197197
class UserProfileHandler(BaseHandler):

qiita_pet/support_files/doc/source/gettingstartedguide/index.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ Editing a Study
7676

7777
.. _prepare-information-files:
7878

79-
Creating and Working With Sample information
80-
--------------------------------------------
81-
82-
* The :doc:`../qiimp` tab located at the top of the page is a useful tool for creating Qiita and EBI compatible metadata spreadsheets.
83-
8479
Example files
8580
~~~~~~~~~~~~~
8681

0 commit comments

Comments
 (0)