{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":81567019,"defaultBranch":"master","name":"tdm_loader","ownerLogin":"domna","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2017-02-10T13:18:53.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/1014422?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1711631900.0","currentOid":""},"activityList":{"items":[{"before":"9d431e496e771c227f7c575d5ea5344dd5f000b7","after":"c00e5e78af5e02432ded945eb858b1f13298fd92","ref":"refs/heads/master","pushedAt":"2024-03-28T13:20:48.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"domna","name":"Florian Dobener","path":"/domna","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1014422?s=80&v=4"},"commit":{"message":"Adds readthedocs settings","shortMessageHtmlLink":"Adds readthedocs settings"}},{"before":"3cffb748ad86cf224aec52e8f4e726ea60839477","after":"9d431e496e771c227f7c575d5ea5344dd5f000b7","ref":"refs/heads/master","pushedAt":"2024-03-28T13:17:46.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"domna","name":"Florian Dobener","path":"/domna","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1014422?s=80&v=4"},"commit":{"message":"Refactor channel search functionality in `tdm_loader` (#28)\n\n* Refactor channel search functionality in `tdm_loader`\r\n\r\nThe previous implementation of the channel search function in the `tdm_loader.py` was refactored. Search now matches channels directly without set generation and updates retrieval with more efficient lookups. The modification updates the testing to reflect the changes in the returned search results as well.\r\n\r\nBefore the refactor searching throe 22000 channels took 6.5min and after it took 0.08s\r\n\r\nAlso the test has changed to be similar when searching for \"\", all channels should be returned.\r\n\r\n* Update tdm_loader/tdm_loader.py\r\n\r\nCo-authored-by: Florian Dobener \r\n\r\n* Update tdm_loader/tdm_loader.py\r\n\r\nCo-authored-by: Florian Dobener \r\n\r\n* Update tdm_loader/tdm_loader.py\r\n\r\nCo-authored-by: Florian Dobener \r\n\r\n* Update tdm_loader/tdm_loader.py\r\n\r\nCo-authored-by: Florian Dobener \r\n\r\n* Update tdm_loader/tdm_loader.py\r\n\r\nCo-authored-by: Florian Dobener \r\n\r\n* Update tdm_loader/tdm_loader.py\r\n\r\nCo-authored-by: Florian Dobener \r\n\r\n* Implement caching and optimize channel search in `tdm_loader`\r\n\r\nA cache decorator is introduced for the `get_channels` function to speed up repeated lookups, replacing the previous, dictionary lookup.\r\n\r\n* Rename method get_channels to _get_channels in tdm_loader\r\n\r\nThe public `get_channels` function is renamed to the private method `_get_channels` in 'tdm_loader.py'. This is due to internal use only, to provide more clarity and prevent unintended external access.\r\n\r\n* Correct typo in method name in tdm_loader\r\n\r\nThe method name \"get_channels\" has been corrected to \"_get_channels\" in the 'tdm_loader.py' file. The change was necessitated by the requirement for the method to be private, hence the underscore, as it's only meant for internal use, preventing unintended external access.\r\n\r\n---------\r\n\r\nCo-authored-by: Espen Enes \r\nCo-authored-by: Florian Dobener ","shortMessageHtmlLink":"Refactor channel search functionality in tdm_loader (#28)"}},{"before":"d390e773f4ae52f7182f64c73beb44a7ac6bc020","after":"3cffb748ad86cf224aec52e8f4e726ea60839477","ref":"refs/heads/master","pushedAt":"2024-03-22T09:16:34.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"domna","name":"Florian Dobener","path":"/domna","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/1014422?s=80&v=4"},"commit":{"message":"Refactor channel_group_search implementation in tdm_loader (#27)\n\n* Refactor channel_group_search implementation in tdm_loader\r\n\r\nWhen searching and resulting groups has identical channel group names, only the first channel group index is returned\r\n\r\nNew logic will look at channel group names together with occurrences to find the correct channel group index.\r\n\r\n* Update tdm_loader/tdm_loader.py\r\n\r\nCo-authored-by: Florian Dobener \r\n\r\n* Simplify channel group search logic in tdm_loader\r\n\r\nThe previous implementation counted and used the number of times a channel group name appeared, which added extra complexity to the search logic. The new logic simplifies this process by directly appending the names to the found_terms list and by making the search case- and space-insensitive.\r\n\r\n* Refactor search logic in tdm_loader for channel group names\r\n\r\nSwitched from a for-loop and conditional check structure to an inline list comprehension to search for channel group names. The aim of this refactor is to simplify the code and improve readability, while maintaining the functionality of ignoring None values and retaining valid group names.\r\n\r\n* Update return type in tdm_loader\r\n\r\nChanged the return type of a function in tdm_loader from a list to a set. This modification ensures unique channel group names are returned from the function, thus improving the accuracy of the channel search process.\r\n\r\n* Removed the use of set when returning search results from channel_group_search\r\n\r\n* Update tdm_loader/tdm_loader.py\r\n\r\nCo-authored-by: Florian Dobener \r\n\r\n* Update tdm_loader/tdm_loader.py\r\n\r\nCo-authored-by: Florian Dobener \r\n\r\n* Update tdm_loader/tdm_loader.py\r\n\r\nCo-authored-by: Florian Dobener \r\n\r\n---------\r\n\r\nCo-authored-by: Espen Enes \r\nCo-authored-by: Florian Dobener ","shortMessageHtmlLink":"Refactor channel_group_search implementation in tdm_loader (#27)"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEIcYjuwA","startCursor":null,"endCursor":null}},"title":"Activity ยท domna/tdm_loader"}