Skip to content

Sergey_Matyushenok_matyushenoksergei@yandex.by#25

Open
Sergey582 wants to merge 8 commits into
epam-python-courses-7-bsu:masterfrom
Sergey582:sergey_matyushenok
Open

Sergey_Matyushenok_matyushenoksergei@yandex.by#25
Sergey582 wants to merge 8 commits into
epam-python-courses-7-bsu:masterfrom
Sergey582:sergey_matyushenok

Conversation

@Sergey582

Copy link
Copy Markdown

No description provided.

Comment thread final_task/rss_reader/rss_reader.py Outdated
Comment thread final_task/rss_reader/scripts/parser_rss.py Outdated
Comment thread final_task/rss_reader/scripts/parser_rss.py
@HenadziStantchik

Copy link
Copy Markdown
Collaborator

Your app does not work:
maty

@HenadziStantchik HenadziStantchik changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by-PLEASE REVIEW Sergey_Matyushenok_matyushenoksergei@yandex.by Nov 19, 2019
@Sergey582 Sergey582 changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by Sergey_Matyushenok_matyushenoksergei@yandex.by - PLEASE REVIEW Nov 20, 2019
@HenadziStantchik

Copy link
Copy Markdown
Collaborator

I did not discover any issues with your app work.

Comment thread final_task/rss_reader/News.py Outdated
Comment thread final_task/rss_reader/News.py Outdated
Comment thread final_task/rss_reader/News.py
Comment thread final_task/rss_reader/exceptions.py Outdated
Comment thread final_task/rss_reader/pars_args.py Outdated
Comment thread final_task/rss_reader/parser_rss.py Outdated
Comment thread final_task/rss_reader/parser_rss.py Outdated
@HenadziStantchik HenadziStantchik changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by - PLEASE REVIEW Sergey_Matyushenok_matyushenoksergei@yandex.by Nov 21, 2019
@Sergey582 Sergey582 changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by Sergey_Matyushenok_matyushenoksergei@yandex.by -PLEASE REVIEW Nov 21, 2019
Comment thread final_task/README.md Outdated
Comment thread final_task/rss_reader/database.py Outdated
Comment thread final_task/rss_reader/parser_rss.py Outdated
@HenadziStantchik HenadziStantchik changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by -PLEASE REVIEW Sergey_Matyushenok_matyushenoksergei@yandex.by Nov 21, 2019
@HenadziStantchik HenadziStantchik added the question Further information is requested label Nov 21, 2019
@Sergey582 Sergey582 changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by Sergey_Matyushenok_matyushenoksergei@yandex.by -PLEASE REVIEW Nov 21, 2019
@HenadziStantchik

Copy link
Copy Markdown
Collaborator

Sometimes there is an empty line in Links field:

maty

--date still does not work for me. Did exactly as told in README.md. Tried both localhost and the address i got using nslookup. I even did db stop/start
maty

@HenadziStantchik HenadziStantchik changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by -PLEASE REVIEW Sergey_Matyushenok_matyushenoksergei@yandex.by Nov 22, 2019
@HenadziStantchik HenadziStantchik removed the question Further information is requested label Nov 22, 2019
Comment thread final_task/README.md Outdated
Comment on lines +27 to +41
To use caching you must have a postgresql database on your computer or laptop
with default parameters:
database="postgres",
user="postgres",
password="1",
host="localhost",
port="5432"
If you do not, follow these commands:
1)Open terminal
2)sudo apt-get install postgresql
3)sudo -u postgres psql
4)\password
5)1
6)1
7)\conninfo find out the port and if it is not equal 5432, change the config.txt port to your

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you can see from our struggle, making your standard user to perform some additional steps like setting up the database / changing some parameters by his own hands is a bad idea for a project distribution.

In the real production all these steps are usually performed by bash scripts or inside docker containers so the user only need to write 1-2 lines in the terminal to get the things going.

It is ok to use postgres db if you are aiming for iteration 6, but ideally the process should be fully automated, so the user do not need to install/change any additional stuff

@Sergey582 Sergey582 changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by Sergey_Matyushenok_matyushenoksergei@yandex.by -PLEASE REVIEW Nov 22, 2019
@HenadziStantchik HenadziStantchik changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by -PLEASE REVIEW Sergey_Matyushenok_matyushenoksergei@yandex.by Nov 23, 2019
@HenadziStantchik

Copy link
Copy Markdown
Collaborator

I did not discover any issues with iteration 3 work

@Sergey582 Sergey582 changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by Sergey_Matyushenok_matyushenoksergei@yandex.by -PLEASE REVIEW Nov 24, 2019
@Sergey582

Copy link
Copy Markdown
Author

Сould you please tell me if saving to a file works for you?

@HenadziStantchik

Copy link
Copy Markdown
Collaborator

I did not discover any issues with Iteration 5 work.

As for Iteration 4, looks good, but there is slight bug: if there is no path separator at the end of the path to the folder specified by user, files are saved in slightly wrong location:

python rss_reader.py "https://news.yahoo.com/rss/" --date 20191124 --limit 2 --to-html /home/ginnudi/FinalTaskRssParser/final_task/rss_reader

news successfully saved to file   /home/ginnudi/FinalTaskRssParser/final_task/rss_readerNews.html

Both for html and pdf. Aside from that i did not discover any issues with Iteration 4, but be sure to test it thoroughly yourself in case I missed something.

@HenadziStantchik HenadziStantchik changed the title Sergey_Matyushenok_matyushenoksergei@yandex.by -PLEASE REVIEW Sergey_Matyushenok_matyushenoksergei@yandex.by Nov 24, 2019
Comment thread final_task/config.txt
Comment on lines +1 to +5
database postgres
user postgres
password 1
host localhost
port 5432 No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you switched database, it is logical to remove this file.

Comment thread final_task/setup.py
@HenadziStantchik

Copy link
Copy Markdown
Collaborator

Here is feedback on your application work:
Iteration 1:
Everything works fine.
Iteration 2:
Installs fine. All iterations work.
Iteration 3:
Everything works fine. Good job implementing search by rss source.
Iteration 4:
Everything works fine.
Iteration 5:
Everything works fine.

Tests are decently written, coverage percentage is high enough.
There are some redundant files which are left from usage of previous db.
Code is readable, decently structured, absolutely corresponds to the PEP8 guidelines.
Commit messages are somewhat informative, but do not correspond to the recommended commit message style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants