Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming reports #142

Open
eilonreifs opened this issue Dec 22, 2020 · 12 comments
Open

Naming reports #142

eilonreifs opened this issue Dec 22, 2020 · 12 comments
Labels
backlog Backlog new feature New Feature

Comments

@eilonreifs
Copy link

Hi,
It could be awesome if you will add an option of naming the report when creating it through the API, instead of just giving it arbitrary names (e.g. 1,2,3).
It can be very useful for the purpose of preserving the reports for the long term.
Thanks!

@fescobar
Copy link
Owner

@eilonreifs I could handle an option to do that. I will put it in the backlog. Thanks

@fescobar fescobar added backlog Backlog new feature New Feature labels Dec 22, 2020
@fescobar
Copy link
Owner

Hi @eilonreifs Regarding your requirement. When you say this: It can be very useful for the purpose of preserving the reports for the long term. Remember there is a limit by default to keep the latest 20 executions (customized to support the limit that you want.) I mean if we store your named report, it will be removed once the limit (20) is reached. Is it something that you mind?

I think if you want to keep the report permanently, maybe we need to create another place to store that report, something like archived_reports. In that way, I will need to create other endpoints to access archived reports and remove them. it would be that something useful for you? Can you explain the use case in detail, please?

@eilonreifs
Copy link
Author

Hi @fescobar , I am aware of the limit.
The classic use case of that feature is easily finding the relevant report when looking for a specific date / version, depends on how the developer defines the name.
I'm planning on giving names based on the time and date of the report, what will make it possible to access reports from a specific date.
Thanks a lot

@fescobar
Copy link
Owner

@eilonreifs Ok, let me think about that. Thanks

@mhd-b
Copy link

mhd-b commented Feb 11, 2021

It could also be useful to use snapshot names, instead of id or date as well
I believe making this as a custom environment option will make it more generic to use

@fescobar
Copy link
Owner

fescobar commented Feb 11, 2021

@fescobar If I implement this, it should be like this: 1-your_custom_name,2-your_custom_name . I need to have the index as the first position. what do you think? @mhd-b

@adamakalshchikov
Copy link

adamakalshchikov commented Feb 11, 2021

Is it possible to make the report name completely controllable? Does it make sense the presence of an index before your_custom_name? Could it be replaced by another unique value, set by user?

@fescobar
Copy link
Owner

@adamakalshchikov it's not possible to do that. It seems to be an easy change, but with that, I will lose complete control of the reports. Always I need the index.

@mobedigg
Copy link

+1 for this feature, we are using custom name in format <SERVICE_NAME>_<DATETIME_OF_TESTING> for our reports so even with index digits in front it would be much easier to find required report than just by number.

@roy-firman
Copy link

any update regarding of it? would like to bind it to a build id, it is an increasing integer so there is no way of losing control of the reports

@NaZaRKIN123
Copy link

NaZaRKIN123 commented May 6, 2022

Hi @fescobar, +1 for this feature.

  1. Another example of passing id from outside would be to pass BuildName from AzureDevOps and with that make use of the broken Allure Test Reports plugin. But that also requires full control of the report URL.
  2. As for indexes, can you create a 1:1 mapping of indexes to report names somewhere? This is what usually is being done to have ID when a user wants something else)) and it will help to have both last N functionality working and having free naming for reports? Even more simple would be just saving file names in a file row by row and removing lines from begging and adding lines at the end.

UPD: After checking out keepAllureLatestHistory.sh) I understood why not having the ID is so inconvenient =) but I guess it's still doable.

@DonaghM1982
Copy link

@fescobar If I implement this, it should be like this: 1-your_custom_name,2-your_custom_name . I need to have the index as the first position. what do you think? @mhd-b

Hi @fescobar, did this option get added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Backlog new feature New Feature
Projects
None yet
Development

No branches or pull requests

8 participants