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

Remove ChannelId from YTS Videos #179

Open
wants to merge 1 commit into
base: year-ap
Choose a base branch
from

Conversation

moraesvic
Copy link
Collaborator

Please consider PR #174 before assessing this

As we proceeded with the implementation of CSV Data Syncing on Year-Ap, it became clear that the column "ChannelId" was unnecessary (in fact detrimental) in this table

@moraesvic moraesvic self-assigned this Feb 23, 2022
Copy link

@MarcosFleury MarcosFleury left a comment

Choose a reason for hiding this comment

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

From what I remember seeing, only "Groups_InsertOrphanItems" has some exception handling, on the others the exceptions are sent to a higher level. Is this desirable? Is there any job that could continue even if an exception is raised? Or maybe could we insert some kind of retry in case of some exceptions?

namespace DataLakeModels.Models.YouTube.Studio {

public class Group : IEquatable<Group> {
public Group() {}

Choose a reason for hiding this comment

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

Do we need to have this line?

public string ChannelId { get; set; }
public string Title { get; set; }
public DateTime RegistrationDate { get; set; }
public DateTime? UpdateDate { get; set; }

Choose a reason for hiding this comment

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

Does it make sense to have a null UpdateDate? Couldn't we just set to the RegistrationDate?

public string Title { get; set; }
public DateTime RegistrationDate { get; set; }
public DateTime? UpdateDate { get; set; }
public List<Item> Items { get; set; }

Choose a reason for hiding this comment

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

Is this list accessible in the database? Is this created on the database?

dirs.Add(path);
}
foreach (var dir in dirs) {
Console.WriteLine($"Now in {dir}");

Choose a reason for hiding this comment

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

Do you think we need this every time we look for services?


/* API METHODS */

protected void ReportError(Errors e) {

Choose a reason for hiding this comment

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

Do we have a similar class on the other YouTube fetcher? If not, should we add it?

RequestId = {e.RequestId}
");
Logger.Error("For more information, see https://googleapis.dev/dotnet/Google.Apis.YouTubeAnalytics.v2/latest/api/Google.Apis.YouTubeAnalytics.v2.Data.Errors.html");
throw new Exception("Response to API request contains an error. See message above.");

Choose a reason for hiding this comment

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

This exception is only caught outisde of this job, right? Is this desirable? Should there be error handling inside of the job before leaving it with an error?

@moraesvic moraesvic force-pushed the hotfix/remove_channel_id_from_yts_videos branch from 1660ca5 to 4ac1cd4 Compare March 3, 2022 18:56
Copy link

@MarcosFleury MarcosFleury left a comment

Choose a reason for hiding this comment

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

Were my comments addressed somewhere? I don't remember if we discussed about it anywhere else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants