-
Notifications
You must be signed in to change notification settings - Fork 0
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
Inject user tracking code #8
Commits on Mar 21, 2024
-
make help email address configurable instead of hard coding (qiita-sp…
…ots#3384) * Update CHANGELOG.md * make help email address configurable instead of hard coding * codestyle * don't default with email addresses but raise Errors * set mail addresses in example configuration, which is also used for testing * addessing Antonios issues + switch to a non deprecated read fct. * updating dummy help email address in tests --------- Co-authored-by: Antonio Gonzalez <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d743a81 - Browse repository at this point
Copy the full SHA d743a81View commit details
Commits on Mar 27, 2024
-
PR: Resource allocation plots in util.py (qiita-spots#3382)
* Initial commmit to resource allocation plots * Update to util.py and tests * Update test_util.py * revert 072023.ipynb * Debug test_util * testing plot based on № failures * Addressed Antonio's comments * Updates according to @charles-cowart comments * define functions as const @charles-cowart
Configuration menu - View commit details
-
Copy full SHA for 8c91945 - Browse repository at this point
Copy the full SHA 8c91945View commit details
Commits on Apr 2, 2024
-
add trailing/separating whitespace (qiita-spots#3385)
* Update CHANGELOG.md * add trailing/separating whitespace got the error `Error running SQL: SYNTAX_ERROR. MSG: trailing junk after numeric literal at or near "1A" LINE 6: WHERE study_id = 1AND artifact_type = '... ^ ` on my test instance log says ``` ==> bcf_qiita/Logs/qiita_21174.log <== [E 240322 13:35:00 web:1669] Uncaught exception GET /study/description/1 (127.0.0.1) HTTPServerRequest(protocol='https', host='qiita.jlab.bio', method='GET', uri='/study/description/1', version='HTTP/1.0', remote_ip='127.0.0.1') Traceback (most recent call last): File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 256, in _execute cur.execute(sql, sql_args) File "/homes/sjanssen/bcf_qiita/envs/qiita/lib/python3.9/site-packages/psycopg2/extras.py", line 146, in execute return super().execute(query, vars) psycopg2.errors.SyntaxError: trailing junk after numeric literal at or near "1A" LINE 6: WHERE study_id = 1AND artifact_type = '... ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 199, in _raise_execution_error raise ValueError( ValueError: Error running SQL: SYNTAX_ERROR. MSG: trailing junk after numeric literal at or near "1A" LINE 6: WHERE study_id = 1AND artifact_type = '... ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/homes/sjanssen/bcf_qiita/envs/qiita/lib/python3.9/site-packages/tornado/web.py", line 1590, in _execute result = method(*self.path_args, **self.path_kwargs) File "/homes/sjanssen/bcf_qiita/envs/qiita/lib/python3.9/site-packages/tornado/web.py", line 3006, in wrapper return method(self, *args, **kwargs) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_pet/handlers/study_handlers/base.py", line 28, in get study_info = study_get_req(study, self.current_user.id) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_pet/handlers/api_proxy/studies.py", line 120, in study_get_req study.artifacts(artifact_type='BIOM')) != 0 File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/study.py", line 1108, in artifacts for aid in qdb.sql_connection.TRN.execute_fetchflatten()] File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 49, in wrapper return func(self, *args, **kwargs) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 389, in execute_fetchflatten return list(chain.from_iterable(self.execute()[idx])) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 49, in wrapper return func(self, *args, **kwargs) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 313, in execute return self._execute() File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 260, in _execute self._raise_execution_error(sql, sql_args, e) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 205, in _raise_execution_error raise ValueError("Error running SQL query: %s" % str(error)) ValueError: Error running SQL query: Error running SQL: SYNTAX_ERROR. MSG: trailing junk after numeric literal at or near "1A" LINE 6: WHERE study_id = 1AND artifact_type = '... ^ [E 240322 13:35:00 web:2161] 500 GET /study/description/1 (127.0.0.1) 159.63ms [E 240322 13:35:00 web:1114] Uncaught exception in write_error Traceback (most recent call last): File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 256, in _execute cur.execute(sql, sql_args) File "/homes/sjanssen/bcf_qiita/envs/qiita/lib/python3.9/site-packages/psycopg2/extras.py", line 146, in execute return super().execute(query, vars) psycopg2.errors.SyntaxError: trailing junk after numeric literal at or near "1A" LINE 6: WHERE study_id = 1AND artifact_type = '... ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 199, in _raise_execution_error raise ValueError( ValueError: Error running SQL: SYNTAX_ERROR. MSG: trailing junk after numeric literal at or near "1A" LINE 6: WHERE study_id = 1AND artifact_type = '... ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/homes/sjanssen/bcf_qiita/envs/qiita/lib/python3.9/site-packages/tornado/web.py", line 1590, in _execute result = method(*self.path_args, **self.path_kwargs) File "/homes/sjanssen/bcf_qiita/envs/qiita/lib/python3.9/site-packages/tornado/web.py", line 3006, in wrapper return method(self, *args, **kwargs) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_pet/handlers/study_handlers/base.py", line 28, in get study_info = study_get_req(study, self.current_user.id) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_pet/handlers/api_proxy/studies.py", line 120, in study_get_req study.artifacts(artifact_type='BIOM')) != 0 File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/study.py", line 1108, in artifacts for aid in qdb.sql_connection.TRN.execute_fetchflatten()] File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 49, in wrapper return func(self, *args, **kwargs) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 389, in execute_fetchflatten return list(chain.from_iterable(self.execute()[idx])) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 49, in wrapper return func(self, *args, **kwargs) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 313, in execute return self._execute() File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 260, in _execute self._raise_execution_error(sql, sql_args, e) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 205, in _raise_execution_error raise ValueError("Error running SQL query: %s" % str(error)) ValueError: Error running SQL query: Error running SQL: SYNTAX_ERROR. MSG: trailing junk after numeric literal at or near "1A" LINE 6: WHERE study_id = 1AND artifact_type = '... ^ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 256, in _execute cur.execute(sql, sql_args) File "/homes/sjanssen/bcf_qiita/envs/qiita/lib/python3.9/site-packages/psycopg2/extras.py", line 146, in execute return super().execute(query, vars) psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "pk_logging" DETAIL: Key (logging_id)=(294) already exists. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 199, in _raise_execution_error raise ValueError( ValueError: Error running SQL: UNIQUE_VIOLATION. MSG: duplicate key value violates unique constraint "pk_logging" DETAIL: Key (logging_id)=(294) already exists. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/homes/sjanssen/bcf_qiita/envs/qiita/lib/python3.9/site-packages/tornado/web.py", line 1112, in send_error self.write_error(status_code, **kwargs) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_pet/handlers/base_handlers.py", line 69, in write_error LogEntry.create( File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/logger.py", line 103, in create return cls(qdb.sql_connection.TRN.execute_fetchlast()) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 49, in wrapper return func(self, *args, **kwargs) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 336, in execute_fetchlast return self.execute()[-1][0][0] File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 49, in wrapper return func(self, *args, **kwargs) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 313, in execute return self._execute() File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 260, in _execute self._raise_execution_error(sql, sql_args, e) File "/homes/sjanssen/bcf_qiita/qiita-spots/qiita/qiita_db/sql_connection.py", line 205, in _raise_execution_error raise ValueError("Error running SQL query: %s" % str(error)) ValueError: Error running SQL query: Error running SQL: UNIQUE_VIOLATION. MSG: duplicate key value violates unique constraint "pk_logging" DETAIL: Key (logging_id)=(294) already exists. ``` --------- Co-authored-by: Antonio Gonzalez <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 667a22a - Browse repository at this point
Copy the full SHA 667a22aView commit details
Commits on Apr 4, 2024
-
Config statsmap lat long (qiita-spots#3388)
* Update CHANGELOG.md * let user configure the center point for the stats world map --------- Co-authored-by: Antonio Gonzalez <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 83476d5 - Browse repository at this point
Copy the full SHA 83476d5View commit details
Commits on Apr 16, 2024
-
qiita.slurm_resource_allocations (qiita-spots#3391)
* Update CHANGELOG.md * add db changes including fix qiita-spots#3368
Configuration menu - View commit details
-
Copy full SHA for 8660043 - Browse repository at this point
Copy the full SHA 8660043View commit details -
Pac bio smrt new instruments (qiita-spots#3390)
* Update CHANGELOG.md * PacBio_SMRT new instruments
Configuration menu - View commit details
-
Copy full SHA for fe50614 - Browse repository at this point
Copy the full SHA fe50614View commit details
Commits on Apr 22, 2024
-
Adding current human filtering flag to prep_template (qiita-spots#3395)
* Update CHANGELOG.md * adding current_human_filtering to PrepTemplate
Configuration menu - View commit details
-
Copy full SHA for 28d7191 - Browse repository at this point
Copy the full SHA 28d7191View commit details
Commits on Apr 23, 2024
-
* Update CHANGELOG.md * fix qiita-spots#3352
Configuration menu - View commit details
-
Copy full SHA for 8b833d3 - Browse repository at this point
Copy the full SHA 8b833d3View commit details -
* Update CHANGELOG.md * fix qiita-spots#3387
Configuration menu - View commit details
-
Copy full SHA for b4a7caf - Browse repository at this point
Copy the full SHA b4a7cafView commit details -
* Update CHANGELOG.md * fix qiita-spots#3376
Configuration menu - View commit details
-
Copy full SHA for 68fa3e2 - Browse repository at this point
Copy the full SHA 68fa3e2View commit details
Commits on Apr 26, 2024
-
Update qiita prep temp06182020 (qiita-spots#3400)
* Update CHANGELOG.md * updating QiitaPrepTemp06182020.xlsx
Configuration menu - View commit details
-
Copy full SHA for 6d27147 - Browse repository at this point
Copy the full SHA 6d27147View commit details -
add reprocess_job_id to PrepTemplate (qiita-spots#3396)
* Update CHANGELOG.md * add reprocess_job_id to PrepTemplate
Configuration menu - View commit details
-
Copy full SHA for 748126a - Browse repository at this point
Copy the full SHA 748126aView commit details
Commits on May 7, 2024
-
Clean plugins (qiita-spots#3403)
* Update CHANGELOG.md * clean plugins * patch 54.sql * fix Internal Qiita jobs * sample_template.generate_files * rm extra filepath * qiita.filepath_filepath_id_seq * basedir_len * basedir_len * 2 * basedir_len * 3 * get_db_files_base_dir * address @charles-cowart comment
Configuration menu - View commit details
-
Copy full SHA for 7b9cb33 - Browse repository at this point
Copy the full SHA 7b9cb33View commit details -
adding test_db_sql (qiita-spots#3405)
* Update CHANGELOG.md * clean plugins * patch 54.sql * fix Internal Qiita jobs * sample_template.generate_files * rm extra filepath * qiita.filepath_filepath_id_seq * basedir_len * basedir_len * 2 * basedir_len * 3 * get_db_files_base_dir * adding test_db_sql * missing ` * echo $QIITA_CONFIG_FP * -p 32768 * -l localhost * pgport * testing 1 * testing 2 * localhost * testing 3 * -h localhost * -W * PGPASSWORD * doc * flake8 * mods after chatting with @charles-cowart * exit 1 * "$row_counts" * # * `echo $row_counts` * full tests
Configuration menu - View commit details
-
Copy full SHA for 7c7600e - Browse repository at this point
Copy the full SHA 7c7600eView commit details
Commits on May 16, 2024
-
ext documentation nginx mod_zip (qiita-spots#3409)
* Update CHANGELOG.md * Note about missing mod_zip As I wasted too much time in figuring out what's wrong with anonymous link downloads, I thought it would be handy to summarize my lessons learned for others * add git "secretly" adding git as an Ubuntu package to be installed in a fresh system. Git later referred to for obtaining the Qiita sources. --------- Co-authored-by: Antonio Gonzalez <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6ac8ee8 - Browse repository at this point
Copy the full SHA 6ac8ee8View commit details -
* Update CHANGELOG.md * fix qiita-spots#3381 * fallback * rm qiimp from test
Configuration menu - View commit details
-
Copy full SHA for c0cdb4b - Browse repository at this point
Copy the full SHA c0cdb4bView commit details
Commits on May 21, 2024
-
Test util db (qiita-spots#3406)
* Update to DB qiita.slurm_resource_allocations * connected tests to database * Update util.py * debugging changes to test * Update test_util.py * Update test_util.py * Tests update * Update test_meta_util.py * Updates to @antgonza comments * Updates to @charles-cowart comments
Configuration menu - View commit details
-
Copy full SHA for 55e460e - Browse repository at this point
Copy the full SHA 55e460eView commit details
Commits on Jun 4, 2024
-
Fix msg admin none (qiita-spots#3410)
* Update CHANGELOG.md * fix admin processing_job msg None * update keys
Configuration menu - View commit details
-
Copy full SHA for 1ffd9a0 - Browse repository at this point
Copy the full SHA 1ffd9a0View commit details -
change color of msg to green by default and only to red if msg starts…
… with ERROR (qiita-spots#3413)
Configuration menu - View commit details
-
Copy full SHA for ffe1ec8 - Browse repository at this point
Copy the full SHA ffe1ec8View commit details
Commits on Jun 5, 2024
-
Add social handles (qiita-spots#3412)
* user profile can now also store social handles from google scholar, ORCID and ResearchGate * set DEFAULT NULL to new qiita.qiita_user columns * extending existing test * extending tests * add tests for validator functions for WTform StringFields * operate on str instead of field.data
Configuration menu - View commit details
-
Copy full SHA for 9de3f38 - Browse repository at this point
Copy the full SHA 9de3f38View commit details
Commits on Jun 19, 2024
-
qiita.slurm_resource_allocations insertion (qiita-spots#3415)
* Update to DB qiita.slurm_resource_allocations * connected tests to database * Update util.py * debugging changes to test * Update test_util.py * Update test_util.py * Tests update * Update test_meta_util.py * Updates to @antgonza comments * Updates to @charles-cowart comments * Resource Allocation Insertion into DB - Added functionality of updating resource allocation data into db in qiita_db/util.py - Added tests for the added functionality in qiita_db/test/test_util.py - Moved MaxRSS_helper function from qiita_core/util.py to qiita_db/util.py. - Moved MaxRSS_helper test from qiita_core/tests/test_util.py to qiita_db/test/test_util.py * Debug Memory Model * Update test_util.py * Added columns to slurm_resource_allocation table * Update test_processing_job.py * Update test_util.py * Automatic date adjustment in utill.py * Update util.py
Configuration menu - View commit details
-
Copy full SHA for cca6de7 - Browse repository at this point
Copy the full SHA cca6de7View commit details
Commits on Jun 20, 2024
-
log user creation timestamp (qiita-spots#3416)
* use SQL's NOW() fct to log creation of a new user account (validated or not). * at -> on * add new col * use patch for DB changes * forgot to remove addition of comment here * moving changes to patch 92 * move adding date from populate_test_db.sql to here * revert changes, see patch * adding table name :-/ * order in DB changed due to UPDATE of creation_timestamp for user [email protected] * fix test
Configuration menu - View commit details
-
Copy full SHA for 8b3f717 - Browse repository at this point
Copy the full SHA 8b3f717View commit details -
Purge non-verified user (qiita-spots#3417)
* use SQL's NOW() fct to log creation of a new user account (validated or not). * at -> on * add new col * adding a new page for admins to easily list all users not yet validated and offer means to delete those * flake8 * fix tests * move DB changes to patch * revert file * no change here * execute merge manually * moving data insertion to test_db_sql patch * account for additional test users
Configuration menu - View commit details
-
Copy full SHA for fd2d9b7 - Browse repository at this point
Copy the full SHA fd2d9b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 751e559 - Browse repository at this point
Copy the full SHA 751e559View commit details