Page MenuHomeSoftware Heritage
Feed Advanced Search

Jun 18 2021

KShivendu retitled D5883: Setup storage and store last revision/release date from Add last_revision_date and last_release_date to Setup storage and store last revision/release date.
Jun 18 2021, 1:02 PM
KShivendu retitled D5883: Setup storage and store last revision/release date from Add last_revision_daate and last_release_date to Add last_revision_date and last_release_date.
Jun 18 2021, 1:02 PM
KShivendu updated the diff for D5883: Setup storage and store last revision/release date.

Rebase and only include new commit

Jun 18 2021, 11:02 AM
KShivendu updated the diff for D5883: Setup storage and store last revision/release date.
  • Store last_eventful_visit_date
  • Add last_revision_daate and last_release_date
Jun 18 2021, 11:00 AM
KShivendu updated the diff for D5883: Setup storage and store last revision/release date.

Squash commits

Jun 18 2021, 10:49 AM
KShivendu updated the diff for D5883: Setup storage and store last revision/release date.
  • Load swh.storage from config
Jun 18 2021, 10:41 AM

Jun 17 2021

KShivendu closed D5878: Store last_eventful_visit_date.
Jun 17 2021, 7:47 PM
KShivendu committed rDSEA35570b4284f6: Store last_eventful_visit_date (authored by KShivendu).
Store last_eventful_visit_date
Jun 17 2021, 7:47 PM
KShivendu requested review of D5883: Setup storage and store last revision/release date.
Jun 17 2021, 1:47 PM
KShivendu updated the diff for D5878: Store last_eventful_visit_date.
  • Reset index at the end of permutation loops
Jun 17 2021, 11:04 AM
KShivendu added inline comments to D5878: Store last_eventful_visit_date.
Jun 17 2021, 10:17 AM
KShivendu added inline comments to D5878: Store last_eventful_visit_date.
Jun 17 2021, 10:15 AM
KShivendu updated the diff for D5878: Store last_eventful_visit_date.

Fix scope of variables used in permutation test

Jun 17 2021, 9:11 AM

Jun 16 2021

KShivendu updated the diff for D5878: Store last_eventful_visit_date.
  • Add test for last_eventful_visit_date with permutations
  • Use type "keyword" for "snapshot_id"
Jun 16 2021, 7:30 PM
KShivendu added inline comments to D5878: Store last_eventful_visit_date.
Jun 16 2021, 10:31 AM
KShivendu requested review of D5878: Store last_eventful_visit_date.
Jun 16 2021, 10:24 AM

Jun 15 2021

KShivendu closed D5824: journal_client: Store visit count and last visit date.
Jun 15 2021, 12:16 PM
KShivendu committed rDSEA8b2c87f4e1b4: Store nb_visits and last_visit_date (authored by KShivendu).
Store nb_visits and last_visit_date
Jun 15 2021, 12:16 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Fix origin_search() documentation and squash commits

Jun 15 2021, 10:41 AM

Jun 14 2021

KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Match origin_search signatures

Jun 14 2021, 6:53 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Re-adjust position of "noqa" for painless script (after applying dedent)

Jun 14 2021, 6:42 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Fix mypy issues

Jun 14 2021, 6:29 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Use gte filter instead of equality

Jun 14 2021, 6:18 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Pull from origin and rebase branch

Jun 14 2021, 5:48 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.
  • Use gte filter instead of equality
Jun 14 2021, 5:41 PM

Jun 11 2021

KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Update docstring to fix sphinx warnings

Jun 11 2021, 7:28 AM

Jun 10 2021

KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.
  • Add field type in es
Jun 10 2021, 8:01 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

An attempt to fix error

Jun 10 2021, 7:20 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Handle difference in iso formats of datetime and elasticsearch(painless) using .replace

Jun 10 2021, 2:31 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Fixes for failing tests

Jun 10 2021, 2:04 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.
  • use compareTo function instead of <. This should fix the painless script
Jun 10 2021, 1:37 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.
  • Improve documentation + tests and fix painless script
Jun 10 2021, 1:08 PM
KShivendu added inline comments to D5824: journal_client: Store visit count and last visit date.
Jun 10 2021, 12:27 PM

Jun 9 2021

KShivendu updated subscribers of D5824: journal_client: Store visit count and last visit date.
Jun 9 2021, 6:29 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.
  • mypy: Fix errors with release >= v0.900 (commit made by @anlambert. I'm including it so that my builds don't fail)
  • Store visit count and last visit date
  • Add tests for last_visit_date
Jun 9 2021, 6:28 PM
KShivendu added a comment to D5824: journal_client: Store visit count and last visit date.

Could you also add a test in test_search.py making sure nb_visit actually does get updated?

Jun 9 2021, 6:25 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Include missing commit

Jun 9 2021, 6:22 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Add tests for last_visit_date

Jun 9 2021, 6:20 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Use noqa instead of multiple """

Jun 9 2021, 11:14 AM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Use """ to overcome line length limits for writing long Painless scripts statements

Jun 9 2021, 7:29 AM

Jun 8 2021

KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Add code to test painless script for merging values atomically

Jun 8 2021, 5:02 PM
KShivendu updated the diff for D5824: journal_client: Store visit count and last visit date.

Use painless script to atomically merge nb_visit and last_visit_date (max values)

Jun 8 2021, 1:52 PM
KShivendu added a comment to D5824: journal_client: Store visit count and last visit date.

There is no guarantee on the order of visits, so you should explicitly prevent nb_visit and last_visit_date from being set to a lower value in origin_update.

Jun 8 2021, 12:54 PM

Jun 7 2021

KShivendu added inline comments to D5824: journal_client: Store visit count and last visit date.
Jun 7 2021, 6:18 PM
KShivendu requested review of D5824: journal_client: Store visit count and last visit date.
Jun 7 2021, 6:14 PM

May 4 2021

KShivendu added a comment to D5326: Add a --version option to all the CLI commands.

Hi @vlorentz, I suspect this diff would have also introduced an issue similar to the one mentioned in T3209. What do you suggest?

May 4 2021, 4:03 PM
KShivendu added a comment to T3304: Kafka throws flush timeout error.

If you face this issue, try restarting the containers using docker-compose down and docker-compose up.

May 4 2021, 4:00 PM · Docker environment, Journal
KShivendu added projects to T3304: Kafka throws flush timeout error: Journal, Core Loader.
May 4 2021, 11:53 AM · Docker environment, Journal
KShivendu created T3304: Kafka throws flush timeout error.
May 4 2021, 11:51 AM · Docker environment, Journal
KShivendu added a comment to T2687: nixguix: Add support for downloads over FTP.

Hey @vlorentz, the sentry link isn't working (or maybe isn't publically accessible).

May 4 2021, 9:23 AM · Nixguix loader, Easy hack

May 3 2021

KShivendu closed D5618: tests/inmemory: Ensure privileged objects are stored properly.
May 3 2021, 12:05 PM
KShivendu committed rDJNL2972c7a694aa: tests/inmemory: Ensure privileged objects are stored properly (authored by KShivendu).
tests/inmemory: Ensure privileged objects are stored properly
May 3 2021, 12:05 PM
KShivendu updated the diff for D5618: tests/inmemory: Ensure privileged objects are stored properly.

Rebase

May 3 2021, 12:01 PM

May 1 2021

KShivendu updated the diff for D5618: tests/inmemory: Ensure privileged objects are stored properly.

Use set instead of sorting

May 1 2021, 7:59 AM

Apr 30 2021

KShivendu added a comment to D5618: tests/inmemory: Ensure privileged objects are stored properly.
assert sorted(expected) == sorted(writer.objects)

These are of type ImmutableDict and hence can't be sorted directly

What is? It works for me.

Apr 30 2021, 11:31 AM
KShivendu updated the diff for D5618: tests/inmemory: Ensure privileged objects are stored properly.
  • Convert ListProxy to List and compare with []
  • Use sorted function and populate writer with TEST_OBJECTS
Apr 30 2021, 11:17 AM

Apr 29 2021

KShivendu added a comment to D5618: tests/inmemory: Ensure privileged objects are stored properly.
assert sorted(expected) == sorted(writer.objects)

These are of type ImmutableDict and hence can't be sorted directly

assert writer.privileged_objects == []

throws an error because writer.privileged_objects is of type ListProxy and can't be directly compared to a list

Apr 29 2021, 2:18 PM
KShivendu updated the diff for D5618: tests/inmemory: Ensure privileged objects are stored properly.

Improve time complexity using sorting

Apr 29 2021, 2:04 PM

Apr 26 2021

KShivendu requested review of D5618: tests/inmemory: Ensure privileged objects are stored properly.
Apr 26 2021, 9:55 PM
KShivendu updated subscribers of T2145: Add swh-badges to https://shields.io.

Hii @moranegg @zack I'm working on this task and I noticed that we are using pybadges for implementing swh-badges which isn't the case with shields.io. Based on what I understand, these badges have to be re-implemented as shields.io services will use swh apis to generate the dynamic parts of the badges.

Apr 26 2021, 8:53 PM · Web app

Apr 19 2021

KShivendu added a comment to T2823: Write tests for swh/journal/writer/inmemory.py.

Do you some more tests or this task can be declared as resolved?

Apr 19 2021, 7:09 PM · Easy hack, Journal

Apr 18 2021

KShivendu closed D5529: Add test to ensure that an exception is raised if unique_key isn't implemented.
Apr 18 2021, 3:17 PM
KShivendu committed rDJNL236a00262e4f: test: Catch errors in write_addition if unique_key isn't implemented (authored by KShivendu).
test: Catch errors in write_addition if unique_key isn't implemented
Apr 18 2021, 3:17 PM

Apr 17 2021

KShivendu added a comment to D5529: Add test to ensure that an exception is raised if unique_key isn't implemented.

Should I add the names of other contributors as well?

Apr 17 2021, 7:29 AM

Apr 16 2021

KShivendu added a comment to D5529: Add test to ensure that an exception is raised if unique_key isn't implemented.

Should I add the names of other contributors as well?

Apr 16 2021, 11:15 AM
KShivendu updated the diff for D5529: Add test to ensure that an exception is raised if unique_key isn't implemented.

Rebase before pushing

Apr 16 2021, 11:14 AM
KShivendu updated the diff for D5529: Add test to ensure that an exception is raised if unique_key isn't implemented.

Add same test for regular kafka writer

Apr 16 2021, 6:50 AM
KShivendu updated the summary of D5529: Add test to ensure that an exception is raised if unique_key isn't implemented.
Apr 16 2021, 6:48 AM
KShivendu retitled D5529: Add test to ensure that an exception is raised if unique_key isn't implemented from inmemory: Add test to detect exception in object unique_key to Add test to ensure that an exception is raised if unique_key isn't implemented.
Apr 16 2021, 6:47 AM

Apr 14 2021

KShivendu requested review of D5529: Add test to ensure that an exception is raised if unique_key isn't implemented.
Apr 14 2021, 8:36 PM
KShivendu closed T2316: Align row deduplication of all _add endpoints on release_add as Resolved.
Apr 14 2021, 5:59 PM · Easy hack, Storage manager
KShivendu updated the task description for T3225: Update the metadata indexer documentation.
Apr 14 2021, 5:54 PM · Indexer, Documentation
KShivendu updated subscribers of T1946: Improve run_a_new_lister.rst file.

Hey @hm, I don't see any typo in https://forge.softwareheritage.org/source/swh-lister/browse/master/docs/run_a_new_lister.rst$50-51. If you do, please make a revision to fix the same.

Apr 14 2021, 5:50 PM · Easy hack, Documentation, Lister
KShivendu closed T1946: Improve run_a_new_lister.rst file as Resolved.
Apr 14 2021, 5:45 PM · Easy hack, Documentation, Lister
KShivendu closed T3132: loader-git: Bad formatting of the "Pack file too big" error message as Resolved.
Apr 14 2021, 5:44 PM · Easy hack, Git loader

Apr 12 2021

KShivendu closed D5419: Cassandra: Deduplicate lists passed to *_add endpoints.
Apr 12 2021, 1:30 PM
KShivendu committed rDSTOc96942b40648: Cassandra: Deduplicate lists passed to *_add endpoints (authored by KShivendu).
Cassandra: Deduplicate lists passed to *_add endpoints
Apr 12 2021, 1:30 PM
KShivendu updated the diff for D5419: Cassandra: Deduplicate lists passed to *_add endpoints.

Updating D5419: Cassandra: Deduplicate lists passed to *_add endpoints

Apr 12 2021, 1:29 PM

Apr 9 2021

KShivendu added a comment to T3227: DB Schema link broken in docs under swh-storage..

Hey @faux it's the same as T3145

Apr 9 2021, 1:02 PM · Easy hack, Documentation
KShivendu updated the diff for D5419: Cassandra: Deduplicate lists passed to *_add endpoints.

Updating D5419: Cassandra: Deduplicate lists passed to *_add endpoints

Apr 9 2021, 12:22 PM
KShivendu updated the diff for D5419: Cassandra: Deduplicate lists passed to *_add endpoints.

Updating D5419: Cassandra: Deduplicate lists passed to *_add endpoints

Apr 9 2021, 10:54 AM

Apr 8 2021

KShivendu added a comment to D5420: cli/identify: Add support for --recursive.

we should build a single model object for the top-level dir, and either output its SWHID, or traverse it (without recomputing SWHIDs) to output all of it

Apr 8 2021, 7:31 PM
KShivendu added inline comments to D5420: cli/identify: Add support for --recursive.
Apr 8 2021, 7:28 PM
KShivendu updated the diff for D5420: cli/identify: Add support for --recursive.

Updating D5420: cli/identify: Use TerminalColor Enum and change recursive flag's description

Apr 8 2021, 7:21 PM
KShivendu added inline comments to D5419: Cassandra: Deduplicate lists passed to *_add endpoints.
Apr 8 2021, 6:23 PM
KShivendu requested review of D5419: Cassandra: Deduplicate lists passed to *_add endpoints.
Apr 8 2021, 6:19 PM
KShivendu planned changes to D5419: Cassandra: Deduplicate lists passed to *_add endpoints.

What do you think should be done for releases?

Apr 8 2021, 6:13 PM
KShivendu updated the diff for D5419: Cassandra: Deduplicate lists passed to *_add endpoints.

Updating D5419: Cassandra: Fixed failing tests

Apr 8 2021, 6:00 PM
KShivendu created T3225: Update the metadata indexer documentation.
Apr 8 2021, 5:20 PM · Indexer, Documentation
KShivendu added a comment to D5419: Cassandra: Deduplicate lists passed to *_add endpoints.

These objects has an id attribute. You can use it for deduplication (eg. via a dict)

Not all objects had id so I used swhid. But some of the tests are failing.

Apr 8 2021, 11:48 AM
KShivendu added a comment to D5416: Fix lister.yml location.

Hi @hm, Your changes have been accepted but they aren't merged yet. Please do a git push to get your commit(s) merged :)

Apr 8 2021, 4:53 AM

Apr 7 2021

KShivendu updated the diff for D5419: Cassandra: Deduplicate lists passed to *_add endpoints.

Updating D5419: Cassandra: Deduplicate lists passed to *_add endpoints

Apr 7 2021, 4:49 PM
KShivendu updated the diff for D5419: Cassandra: Deduplicate lists passed to *_add endpoints.

Updating D5419: Cassandra: Deduplicate lists passed to *_add endpoints

Apr 7 2021, 4:12 PM
KShivendu added a comment to D5419: Cassandra: Deduplicate lists passed to *_add endpoints.

I just discovered that tests failed because the set's internally used hash function throws an error for if a dictionary is passed.
Do you know any other trick which can do the de-duplication in one line? Or should I just create a common function to loop over the list and find the unique ones?

Apr 7 2021, 2:11 PM
KShivendu requested review of D5419: Cassandra: Deduplicate lists passed to *_add endpoints.

I don't think you need to convert the sets back to lists

I did that and got type errors from mypy.
Imo, it's okay to leave it as list(set(..)) because anyhow it gets transformed back into a list within the next 2-3 lines.
What do you think?

Apr 7 2021, 1:42 PM

Apr 6 2021

KShivendu added inline comments to D5420: cli/identify: Add support for --recursive.
Apr 6 2021, 11:16 AM

Apr 5 2021

KShivendu added inline comments to D5420: cli/identify: Add support for --recursive.
Apr 5 2021, 8:51 PM
KShivendu requested review of D5420: cli/identify: Add support for --recursive.
Apr 5 2021, 8:40 PM
KShivendu added a comment to T1487: Add a public API endpoint to retrieve a set of files with a given name.

Hi guys. Any pointers on where to start?

Apr 5 2021, 1:57 PM · Easy hack, Storage manager, Object storage
KShivendu added a comment to T1377: in-memory storage: compute all counters.

I might be wrong but, I think it has been completed. Check out these :

Apr 5 2021, 12:24 PM · Easy hack, Storage manager