breach-tw / breach.tw

A service that can track data breaches like "Have I Been Pwned", but it is specific for Taiwan.
https://breach.tw
MIT License
158 stars 22 forks source link

Task Progress and Status #83

Closed seadog007 closed 4 years ago

seadog007 commented 4 years ago

There is no progress and status for the task, user will never knows if the task finished or not. Also this should include input lines count and output lines count

截圖 2019-10-13 下午3 57 47
seadog007 commented 4 years ago
{ 
    "input_line":100,
    "output_line":50,
    "time_cost":120,
    "status":"done/processing",
    "start_time":"time",
    "end_time":"time/null",
    "pps":{ 
        "s1":[ 
            { 
                "name":"s1pp2",
                "filtered":24
            },
            { 
                "name":"s1pp1",
                "filtered":1
            }
        ],
        "s2":[ 
            { 
                "name":"s2pp5",
                "filtered":24
            }
        ],
        "s1_to_s2":1
    }
}

The output format I expect is like this

lekoOwO commented 4 years ago
{ 
    "input_line":100,
    "output_line":50,
    "time_cost":120,
    "status":"done/processing",
    "start_time":"time",
    "end_time":"time/null",
    "pps":{ 
        "s1":[ 
            { 
                "name":"s1pp2",
                "filtered":24
            },
            { 
                "name":"s1pp1",
                "filtered":1
            }
        ],
        "s2":[ 
            { 
                "name":"s2pp5",
                "filtered":24
            }
        ],
        "s1_to_s2":1
    }
}

The output format I expect is like this

no im going to return progress when it's not done yet

seadog007 commented 4 years ago

@rexx0520 what do you mean by that

lekoOwO commented 4 years ago

3/5

seadog007 commented 4 years ago

@rexx0520 ok