Use ES6 destructuring to simulate named function parameters and improve
code readability.
Use ISO dates.
Rename "object type" to "visit type" to match swh data model.
Depends on D3873
Paths
| Differential D3875 Authored by anlambert on Sep 3 2020, 3:27 PM.
Details
Summary Use ES6 destructuring to simulate named function parameters and improve Use ISO dates. Rename "object type" to "visit type" to match swh data model. Depends on D3873
Diff Detail
Event TimelineHerald added a reviewer: Reviewers. · View Herald TranscriptSep 3 2020, 3:27 PM2020-09-03 15:27:47 (UTC+2) Comment Actions Build is green Patch application report for D3875 (id=13669)Could not rebase; Attempt merge onto 9c41d9f90f... Updating 9c41d9f9..b761578b Fast-forward cypress/integration/origin-save.spec.js | 137 ++++++++++++++++++------ swh/web/assets/src/bundles/admin/origin-save.js | 4 +- swh/web/assets/src/bundles/save/index.js | 4 +- 3 files changed, 110 insertions(+), 35 deletions(-) Changes applied before testcommit b761578b4a660ac9d7d45a9ead8bc550e4c17fb9 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Thu Sep 3 15:26:10 2020 +0200 cypress/origin-save: Improve tests implementation Summary: Use ES6 destructuring to simulate named function parameters and improve code readability. Use ISO dates. Rename "object type" to "visit type" to match swh data model. Depends on D3873 Test Plan: Reviewers: Subscribers: commit f8a6cf8f24704c5832535a9d6063b92133b50d33 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Thu Sep 3 15:11:50 2020 +0200 assets/origin-save: Fix handling of null visit dates in requests list Summary: When a save request task succeeded but the corresponding visit is not yet available in PostgreSQL database (replication lag), a null visit date can be returned so handle that special case. Closes T2557 Reviewers: #reviewers Maniphest Tasks: T2557 Differential Revision: https://forge.softwareheritage.org/D3873 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/352/ for more details. Harbormaster completed remote builds in B14900: Diff 13669.Sep 3 2020, 3:35 PM2020-09-03 15:35:00 (UTC+2) This revision is now accepted and ready to land.Sep 3 2020, 8:38 PM2020-09-03 20:38:11 (UTC+2) Closed by commit rDWAPPSa879ba8c2b13: cypress/origin-save: Improve tests implementation (authored by anlambert). · Explain WhySep 4 2020, 2:04 PM2020-09-04 14:04:11 (UTC+2) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 13703 cypress/integration/origin-save.spec.js
|