Leo Q

Results 59 issues of Leo Q

**What did you do?** I set up a route to mute all warning alert outside work days, and several sub routes to route these alerts to different receivers. **What did...

I'm trying to setup mergeable to merge pr when CI passed and labeled "lgtm" , I tried this https://github.com/LeoQuote/test-repo/blob/master/.github/mergeable.yml but not working as I expected. The pr https://github.com/LeoQuote/test-repo/pull/2 was merged...

🎉 Feature: requested
🎉 Feature: planned

when using put_object method, I can set Meta and content type using ``` response = client.put_object( Body='filetoupload', Bucket='examplebucket', Key='objectkey', ContentType='string', Metadata={ 'string': 'string' }, ) ``` It will be useful...

I tried glob method and found it is too slow when there're millions of files in the directory. turns out that the glob method will first call `list_objects_v2` api first,...

**描述您想要的功能:** 有时候应用会对mysql 建立长连接, 执行一个sleep 操作锁表, 导致无法改表, 这时候如果改表, 可能会造成改表失败, 无论是原生执行还是 pt-osc 都可能失败. 如果可以在失败后, 自动去尝试 kill 所有的 process, 然后重新尝试改表, 就可以省去手工 kill prcocess 的麻烦 **描述您考虑过的解决/替代方案:** 手工在执行工单前 kill process **可参考文档,资料,引用等:** 暂无

目前 https://github.com/jly8866/archer/blob/master/sql/dao.py 的Dao对象只是一堆函数的集合,没有把对象这个功能用上, 我计划直接把master_config或者 slave_config 对象直接传进来当参数, 初始化dao对象, 这样调用的时候就不需要每次都加 username password 这类的信息了

比如 https://github.com/jly8866/archer/blob/6e2bcef21a7235a436906f2dc952aff3530b07e6/sql/check_login_middleware.py 这里的未登录重定向到/login/ 可以通过 django 的 login_required 实现 ``` from django.contrib.auth.decorators import login_required @login_required def my_view(request): ``` https://docs.djangoproject.com/en/1.8/topics/auth/default/#django.contrib.auth.decorators.login_required 不过这个要用的话就需要用上django 自带的一些认证系统, 这里的用户系统可能会需要一些扩充 角色这块可以用外键的方式扩充, 放在一个Profile table里,然后对应的 view可以使用 django的[检验修饰器](https://docs.djangoproject.com/en/1.8/topics/auth/default/#django.contrib.auth.decorators.user_passes_test) 做 等我搭好了会再提一个pull request

First thanks for your product so I can easily recovery from a recent mistaken action. I recoveried with RestoreSession , it did very well. But I noticed there is an...

question
doc

Publish this project to ghcr.io using github action

3 - Review